]> 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>
Thu, 27 Jun 2013 23:51:31 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:33 +0000 (16:37 +1000)
commit10f483d4ba71f56374444fe23bfc410b45bee256
tree03ea7413ef015e725e5072f920e096879df86aed
parentecb70d33cad54481f18dc87c2c4518f03d74206a
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