Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/subr_pool.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/kern/subr_pool.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.137.2.6 retrieving revision 1.137.2.7 diff -u -p -r1.137.2.6 -r1.137.2.7 --- src/sys/kern/subr_pool.c 2007/12/28 15:06:20 1.137.2.6 +++ src/sys/kern/subr_pool.c 2007/12/31 16:25:02 1.137.2.7 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_pool.c,v 1.137.2.6 2007/12/28 15:06:20 ad Exp $ */ +/* $NetBSD: subr_pool.c,v 1.137.2.7 2007/12/31 16:25:02 ad Exp $ */ /*- * Copyright (c) 1997, 1999, 2000, 2002, 2007 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.137.2.6 2007/12/28 15:06:20 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.137.2.7 2007/12/31 16:25:02 ad Exp $"); #include "opt_ddb.h" #include "opt_pool.h" @@ -2641,7 +2641,9 @@ pool_cache_put_slow(pool_cache_cpu_t *cc * object away. */ nobj = pc->pc_pcgsize; - if (nobj == PCG_NOBJECTS_LARGE) { + if (pool_cache_disable) { + pcg = NULL; + } else if (nobj == PCG_NOBJECTS_LARGE) { pcg = pool_get(&pcg_large_pool, PR_NOWAIT); } else { pcg = pool_get(&pcg_normal_pool, PR_NOWAIT);