summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorChristoph Lameter2006-10-07 07:19:44 +0200
committerLinus Torvalds2006-10-07 19:51:14 +0200
commitdcbd4ec4c258f88d4cfd3c309c8a56faff061340 (patch)
treebad0bb2821f1c2759b709ff29c592f14078ede95 /mm
parentMerge branch 'irq-fixes' of git://git.parisc-linux.org/git/linux-2.6 (diff)
downloadkernel-qcow2-linux-dcbd4ec4c258f88d4cfd3c309c8a56faff061340.tar.gz
kernel-qcow2-linux-dcbd4ec4c258f88d4cfd3c309c8a56faff061340.tar.xz
kernel-qcow2-linux-dcbd4ec4c258f88d4cfd3c309c8a56faff061340.zip
[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')
-rw-r--r--mm/slab.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 64fb0d770b06..266449d604bd 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);