From: Cody P Schafer Date: Wed, 3 Jul 2013 22:02:11 +0000 (-0700) Subject: memory_hotplug: use pgdat_resize_lock() in __offline_pages() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~373 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d702909f0aa14fe678d74d7f974aa66bfb211d0b;p=pandora-kernel.git memory_hotplug: use pgdat_resize_lock() in __offline_pages() mmzone.h documents node_size_lock (which pgdat_resize_lock() locks) as follows: * Must be held any time you expect node_start_pfn, node_present_pages * or node_spanned_pages stay constant. [...] So actually hold it when we update node_present_pages in __offline_pages(). [akpm@linux-foundation.org: fix build] Signed-off-by: Cody P Schafer Cc: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed