From: KAMEZAWA Hiroyuki Date: Tue, 11 Jan 2011 07:44:01 +0000 (+0900) Subject: memory hotplug: one more lock on memory hotplug X-Git-Tag: v2.6.37.1~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0712c4990d19ec76ae90789e4aac1dacc7ffa79b;p=pandora-kernel.git memory hotplug: one more lock on memory hotplug commit 925268a06dc2b1ff7bfcc37419a6827a0e739639 upstream. Now, memory_hotplug_(un)lock() is used for add/remove/offline pages for avoiding races with hibernation. But this should be held in online_pages(), too. It seems asymmetric. There are cases where one has to avoid a race with memory hotplug notifier and his own local code, and hotplug v.s. hotplug. This will add a generic solution for avoiding races. In other view, having lock here has no big impacts. online pages is tend to be done by udev script at el against each memory section one by one. Then, it's better to have lock here, too. Reviewed-by: Christoph Lameter Acked-by: David Rientjes Signed-off-by: KAMEZAWA Hiroyuki Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed