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 retrieving revision 1.103 retrieving revision 1.104 diff -u -p -r1.103 -r1.104 --- src/sys/kern/subr_pool.c 2005/10/15 21:22:46 1.103 +++ src/sys/kern/subr_pool.c 2005/10/16 00:28:04 1.104 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_pool.c,v 1.103 2005/10/15 21:22:46 chs Exp $ */ +/* $NetBSD: subr_pool.c,v 1.104 2005/10/16 00:28:04 christos Exp $ */ /*- * Copyright (c) 1997, 1999, 2000 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.103 2005/10/15 21:22:46 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.104 2005/10/16 00:28:04 christos Exp $"); #include "opt_pool.h" #include "opt_poollog.h" @@ -2077,9 +2077,8 @@ pool_do_cache_invalidate(struct pool_cac LOCK_ASSERT(simple_lock_held(&pc->pc_slock)); LOCK_ASSERT(simple_lock_held(&pc->pc_pool->pr_slock)); - for (pcg = LIST_FIRST(&pc->pc_fullgroups); pcg != NULL; pcg = npcg) { - -loop: + for (pcg = LIST_FIRST(&pc->pc_fullgroups); pcg != NULL; + pcg = npcg ? npcg : LIST_FIRST(&pc->pc_partgroups)) { npcg = LIST_NEXT(pcg, pcg_list); while (pcg->pcg_avail != 0) { pc->pc_nitems--; @@ -2092,10 +2091,6 @@ loop: LIST_REMOVE(pcg, pcg_list); LIST_INSERT_HEAD(pcgl, pcg, pcg_list); } - pcg = LIST_FIRST(&pc->pc_partgroups); - if (pcg != NULL) { - goto loop; - } KASSERT(LIST_EMPTY(&pc->pc_partgroups)); KASSERT(LIST_EMPTY(&pc->pc_fullgroups));