]> git.baikalelectronics.ru Git - kernel.git/commit
mm: initialize hotplugged pages as reserved
authorMel Gorman <mgorman@techsingularity.net>
Thu, 6 Aug 2015 22:46:51 +0000 (15:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 Aug 2015 01:39:41 +0000 (04:39 +0300)
commit0effef9c7f74ecde0d32ad3cb02213c9413cfea9
treefa98b09c1249fc9818cafa326abdf3b52efeeeb5
parenta0a5b20aa5c5b415dd60c5856fce7947db3854a0
mm: initialize hotplugged pages as reserved

Commit d5228457c64b ("mm: meminit: only set page reserved in the
memblock region") broke memory hotplug which expects the memmap for
newly added sections to be reserved until onlined by
online_pages_range().  This patch marks hotplugged pages as reserved
when adding new zones.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Reported-by: David Vrabel <david.vrabel@citrix.com>
Tested-by: David Vrabel <david.vrabel@citrix.com>
Cc: Nathan Zimmer <nzimmer@sgi.com>
Cc: Robin Holt <holt@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory_hotplug.c