Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern ...and when freeing cache groups, clear `freeto' if...
details: https://anonhg.NetBSD.org/src/rev/7a9a5ba0cc7d
branches: trunk
changeset: 500193:7a9a5ba0cc7d
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Dec 07 21:30:07 2000 +0000
description:
...and when freeing cache groups, clear `freeto' if that's the one
we're freeing.
diffstat:
sys/kern/subr_pool.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 69d7d92c325d -r 7a9a5ba0cc7d sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c Thu Dec 07 21:24:33 2000 +0000
+++ b/sys/kern/subr_pool.c Thu Dec 07 21:30:07 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_pool.c,v 1.45 2000/12/07 20:16:56 thorpej Exp $ */
+/* $NetBSD: subr_pool.c,v 1.46 2000/12/07 21:30:07 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1999, 2000 The NetBSD Foundation, Inc.
@@ -1741,6 +1741,8 @@
}
if (free_groups) {
TAILQ_REMOVE(&pc->pc_grouplist, pcg, pcg_list);
+ if (pc->pc_freeto == pcg)
+ pc->pc_freeto = NULL;
pool_put(&pcgpool, pcg);
}
}
Home |
Main Index |
Thread Index |
Old Index