Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern In pool_setlowat(), only call pool_catchup() if the...
details: https://anonhg.NetBSD.org/src/rev/115474f043df
branches: trunk
changeset: 499387:115474f043df
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Sun Nov 19 00:29:51 2000 +0000
description:
In pool_setlowat(), only call pool_catchup() if the pool is under the
low water mark. (Avoids annoying warning when you setlowat a static
pool).
diffstat:
sys/kern/subr_pool.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 853007588b6a -r 115474f043df sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c Sat Nov 18 23:45:05 2000 +0000
+++ b/sys/kern/subr_pool.c Sun Nov 19 00:29:51 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_pool.c,v 1.40 2000/08/12 16:28:30 sommerfeld Exp $ */
+/* $NetBSD: subr_pool.c,v 1.41 2000/11/19 00:29:51 sommerfeld Exp $ */
/*-
* Copyright (c) 1997, 1999 The NetBSD Foundation, Inc.
@@ -1150,7 +1150,8 @@
: roundup(n, pp->pr_itemsperpage) / pp->pr_itemsperpage;
/* Make sure we're caught up with the newly-set low water mark. */
- if ((error = pool_catchup(pp)) != 0) {
+ if ((pp->pr_nitems < pp->pr_minitems) &&
+ (error = pool_catchup(pp)) != 0) {
/*
* XXX: Should we log a warning? Should we set up a timeout
* to try again in a second or so? The latter could break
Home |
Main Index |
Thread Index |
Old Index