Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750913AbWBXHwr (ORCPT ); Fri, 24 Feb 2006 02:52:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932076AbWBXHwr (ORCPT ); Fri, 24 Feb 2006 02:52:47 -0500 Received: from courier.cs.helsinki.fi ([128.214.9.1]:5084 "EHLO mail.cs.helsinki.fi") by vger.kernel.org with ESMTP id S1750913AbWBXHwq (ORCPT ); Fri, 24 Feb 2006 02:52:46 -0500 Date: Fri, 24 Feb 2006 09:52:28 +0200 (EET) From: Pekka J Enberg To: akpm@osdl.org cc: linux-kernel@vger.kernel.org, clameter@sgi.com, manfred@colorfullife.com, mark.fasheh@oracle.com, alok.kataria@calsoftinc.com, kiran@scalex86.org Subject: [PATCH] slab: Don't scan cache_cache Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1311 Lines: 40 From: Pekka Enberg 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 Cc: Alok Kataria Cc: Ravikiran G Thirumalai Cc: Manfred Spraul Cc: Mark Fasheh Signed-off-by: Pekka Enberg --- 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()]; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/