]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mem-hotplug: introduce {un}lock_memory_hotplug()
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Thu, 2 Dec 2010 22:31:19 +0000 (14:31 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <kosaki.motohiro@jp.fujitsu.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Suggested-by: Hugh Dickins <hughd@google.com>
Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memory_hotplug.h
mm/memory-failure.c
mm/memory_hotplug.c