mem-hotplug: introduce {un}lock_memory_hotplug()
authorKOSAKI Motohiro <[email protected]>
Thu, 2 Dec 2010 22:31:19 +0000 (14:31 -0800)
committerLinus Torvalds <[email protected]>
Thu, 2 Dec 2010 22:51:15 +0000 (14:51 -0800)
commit20d6c96b5f1cad5c5da4641945ec17a1d9a1afc8
tree38168dc87d58fd924adb3aaca540cd23ad1246bf
parent4fe65cab844e6d3d7d310e66a501d5e7242ecb54
mem-hotplug: introduce {un}lock_memory_hotplug()

Presently hwpoison is using lock_system_sleep() to prevent a race with
memory hotplug.  However lock_system_sleep() is a no-op if
CONFIG_HIBERNATION=n.  Therefore we need a new lock.

Signed-off-by: KOSAKI Motohiro <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Kamezawa Hiroyuki <[email protected]>
Suggested-by: Hugh Dickins <[email protected]>
Acked-by: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/memory_hotplug.h
mm/memory-failure.c
mm/memory_hotplug.c