]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memory hotplug: Correct page reservation checking
authorNathan Fontenot <nfont@austin.ibm.com>
Mon, 26 Sep 2011 15:22:33 +0000 (10:22 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Sep 2011 23:21:14 +0000 (16:21 -0700)
commit54f23eb7ba7619de85d8edca6e5336bc33072dbd
tree2359d70510234837577a2228f6005560b964b0a6
parent61b94feafa1c59a1de2719d23294dea6fd4ca362
memory hotplug: Correct page reservation checking

The check to ensure that pages of recently added memory sections are correctly
marked as reserved before trying to online the memory is broken.  The request
to online the memory fails with the following:

kernel: section number XXX page number 256 not reserved, was it already online?

This updates the page reservation checking to check the pages of each memory
section of the memory block being onlined individually.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/memory.c