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