Re: [RFC PATCH powerpc] Protect remove_memory() with device hotplug lock

2014-04-09 Thread Nathan Fontenot
On 04/09/2014 03:54 AM, Li Zhong wrote: > While testing memory hot-remove, I found following dead lock: > > Process #1141 is drmgr, trying to remove some memory, i.e. memory499. > It holds the memory_hotplug_mutex, and blocks when trying to remove file > "online" under dir memory499, in kernfs_dr

[RFC PATCH powerpc] Protect remove_memory() with device hotplug lock

2014-04-09 Thread Li Zhong
While testing memory hot-remove, I found following dead lock: Process #1141 is drmgr, trying to remove some memory, i.e. memory499. It holds the memory_hotplug_mutex, and blocks when trying to remove file "online" under dir memory499, in kernfs_drain(), at wait_event(root->deactivate_wai