]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[PATCH] slab: remove wrongly placed BUG_ON
authorChristoph Lameter <clameter@sgi.com>
Sat, 7 Oct 2006 05:19:44 +0000 (22:19 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 7 Oct 2006 17:51:14 +0000 (10:51 -0700)
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>
mm/slab.c

index 64fb0d770b06094c3a0a4fc0b1389752d4d1e765..266449d604bd170c4c1656318c1ded64fcc5404a 100644 (file)
--- 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);