linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Remove wrongly places BUG_ON
@ 2006-10-07  3:43 Christoph Lameter
  0 siblings, 0 replies; only message in thread
From: Christoph Lameter @ 2006-10-07  3:43 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm

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>

Index: linux-2.6.18-mm3/mm/slab.c
===================================================================
--- linux-2.6.18-mm3.orig/mm/slab.c	2006-10-06 18:21:27.611390215 -0700
+++ linux-2.6.18-mm3/mm/slab.c	2006-10-06 19:53:55.604410465 -0700
@@ -1331,7 +1331,6 @@ static void init_list(struct kmem_cache 
 {
 	struct kmem_list3 *ptr;
 
-	BUG_ON(cachep->nodelists[nodeid] != list);
 	ptr = kmalloc_node(sizeof(struct kmem_list3), GFP_KERNEL, nodeid);
 	BUG_ON(!ptr);
 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-07  3:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-07  3:43 Remove wrongly places BUG_ON Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox