]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memory_hotplug: use pgdat_resize_lock() in online_pages()
authorCody P Schafer <cody@linux.vnet.ibm.com>
Fri, 7 Jun 2013 00:07:46 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:10 +0000 (15:42 +1000)
commit01ed748b94264a425d08940cd229667b010fa007
tree21e01b4266ec5288089a1b8df8cd8bbec06d292e
parent652718c438317be9e8ed8ef8b3d7b4217ac1bb37
memory_hotplug: use pgdat_resize_lock() in online_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 online_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