linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] slab: Don't scan cache_cache
@ 2006-02-24  7:52 Pekka J Enberg
  2006-02-24 16:16 ` Christoph Lameter
  0 siblings, 1 reply; 4+ messages in thread
From: Pekka J Enberg @ 2006-02-24  7:52 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, clameter, manfred, mark.fasheh, alok.kataria, kiran

From: Pekka Enberg <penberg@cs.helsinki.fi>

The cache_cache object cache is used for bootstrapping, but the cache is
essentially static. It is unlikely that we ever have more than one page
allocated for it. As SLAB_NO_REAP is gone now, fix a regression by skipping
cache_cache explicitly in cache_reap().

Boot-tested with UML.

Cc: Christoph Lameter <clameter@sgi.com>
Cc: Alok Kataria <alok.kataria@calsoftinc.com>
Cc: Ravikiran G Thirumalai <kiran@scalex86.org>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: Mark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
---

 mm/slab.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: 2.6-git/mm/slab.c
===================================================================
--- 2.6-git.orig/mm/slab.c
+++ 2.6-git/mm/slab.c
@@ -3483,6 +3483,10 @@ static void cache_reap(void *unused)
 		struct slab *slabp;
 
 		searchp = list_entry(walk, struct kmem_cache, next);
+
+		if (searchp == &cache_cache)
+			goto next;
+
 		check_irq_on();
 
 		l3 = searchp->nodelists[numa_node_id()];

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-27  2:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-24  7:52 [PATCH] slab: Don't scan cache_cache Pekka J Enberg
2006-02-24 16:16 ` Christoph Lameter
2006-02-25 21:50   ` Pekka Enberg
2006-02-27  2:25     ` Ravikiran G Thirumalai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).