diff options
| author | Pekka Enberg <[email protected]> | 2008-01-25 08:20:51 +0200 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-01-25 08:30:36 -0800 |
| commit | 556a169dab38b5100df6f4a45b655dddd3db94c1 (patch) | |
| tree | c7788980db8dfb401dd4cf28f4445e1ab98f51d2 /include/linux/debugobjects.h | |
| parent | eb36f4fc019835cecf0788907f6cab774508087b (diff) | |
slab: fix bootstrap on memoryless node
If the node we're booting on doesn't have memory, bootstrapping kmalloc()
caches resorts to fallback_alloc() which requires ->nodelists set for all
nodes. Fix that by calling set_up_list3s() for CACHE_CACHE in
kmem_cache_init().
As kmem_getpages() is called with GFP_THISNODE set, this used to work before
because of breakage in 2.6.22 and before with GFP_THISNODE returning pages from
the wrong node if a node had no memory. So it may have worked accidentally and
in an unsafe manner because the pages would have been associated with the wrong
node which could trigger bug ons and locking troubles.
Tested-by: Mel Gorman <[email protected]>
Tested-by: Olaf Hering <[email protected]>
Reviewed-by: Christoph Lameter <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
[ With additional one-liner by Olaf Hering - Linus ]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions