summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2006-10-06 22:19:44 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-07 10:51:14 -0700
commitdcbd4ec4c258f88d4cfd3c309c8a56faff061340 (patch)
treebad0bb2821f1c2759b709ff29c592f14078ede95 /mm/slab.c
parentada26d41e9ee1da31d11957b4452f4227a292e10 (diff)
downloadop-kernel-dev-dcbd4ec4c258f88d4cfd3c309c8a56faff061340.zip
op-kernel-dev-dcbd4ec4c258f88d4cfd3c309c8a56faff061340.tar.gz
[PATCH] slab: remove wrongly placed BUG_ON
Init list is called with a list parameter that is not equal to the cachep->nodelists entry under NUMA if more than one node exists. This is fully legitimatei. One may want to populate the list fields before switching nodelist pointers. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 64fb0d7..266449d 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1328,7 +1328,6 @@ static void init_list(struct kmem_cache *cachep, struct kmem_list3 *list,
{
struct kmem_list3 *ptr;
- BUG_ON(cachep->nodelists[nodeid] != list);
ptr = kmalloc_node(sizeof(struct kmem_list3), GFP_KERNEL, nodeid);
BUG_ON(!ptr);
OpenPOWER on IntegriCloud