memory hotplug: Hot-add with sparsemem-vmemmap
authorYasunori Goto <[email protected]>
Tue, 16 Oct 2007 08:26:14 +0000 (01:26 -0700)
committerLinus Torvalds <[email protected]>
Tue, 16 Oct 2007 16:43:02 +0000 (09:43 -0700)
commit98f3cfc1dc7a53b629d43b7844a9b3f786213048
treede98ff0e3c25b01863c31abc0f3054de978b9ef8
parent48e94196a533dbee17c252bf80d0310fb8c8c2eb
memory hotplug: Hot-add with sparsemem-vmemmap

This patch is to avoid panic when memory hot-add is executed with
sparsemem-vmemmap.  Current vmemmap-sparsemem code doesn't support memory
hot-add.  Vmemmap must be populated when hot-add.  This is for
2.6.23-rc2-mm2.

Todo: # Even if this patch is applied, the message "[xxxx-xxxx] potential
        offnode page_structs" is displayed. To allocate memmap on its node,
        memmap (and pgdat) must be initialized itself like chicken and
        egg relationship.

      # vmemmap_unpopulate will be necessary for followings.
         - For cancel hot-add due to error.
         - For unplug.

Signed-off-by: Yasunori Goto <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Mel Gorman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/mm.h
mm/sparse-vmemmap.c
mm/sparse.c