]> 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>
Wed, 19 Jun 2013 00:06:04 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:13:03 +0000 (17:13 +1000)
commit9687c44fccd295d68889ac2111f6e59ba55d5350
tree081450060cd2f332ae382f46d5d14053961870cc
parentbba333622036fabc34f6c956bec21806cb180523
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