]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memory_hotplug: use pgdat_resize_lock() in __offline_pages()
authorCody P Schafer <cody@linux.vnet.ibm.com>
Thu, 27 Jun 2013 23:51:32 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:33 +0000 (16:37 +1000)
commitdf4875ca076cb27bfeca00d4ce80e12bc127b515
treeee79c655637b6f7181613f421f52cd59d5d415d2
parent10f483d4ba71f56374444fe23bfc410b45bee256
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().

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory_hotplug.c