From: Christoph Lameter Date: Sat, 7 Oct 2006 05:19:44 +0000 (-0700) Subject: [PATCH] slab: remove wrongly placed BUG_ON X-Git-Tag: v2.6.19-rc2~280 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=dcbd4ec4c258f88d4cfd3c309c8a56faff061340;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slab.c b/mm/slab.c index 64fb0d770b0..266449d604b 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);