summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_diskqueue.c
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2004-03-05 02:53:55 +0000
committeroster <oster@NetBSD.org>2004-03-05 02:53:55 +0000
commita0413593bce5fbff0a566fca524a2658054ad525 (patch)
treec4e710bf6c8ed3b0343e07f82e07fdf1012bad6a /sys/dev/raidframe/rf_diskqueue.c
parent49bcfb35d807be5bf92a3bf63dc387c346947d0a (diff)
- remove the RF_*_INC's, as necessary. They are not needed any more.
- introduce RF_MIN_*'s, as necessary. These will indicate the low-water mark for pools as well as the pool_prime() value. - add pool_setlowat() for the critical pools. - pool_prime() and pool_setlowat() the raidframe_cbufpool. - re-order some pool_prime()'s and pool_sethiwat()'s for clarity.
Diffstat (limited to 'sys/dev/raidframe/rf_diskqueue.c')
-rw-r--r--sys/dev/raidframe/rf_diskqueue.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/raidframe/rf_diskqueue.c b/sys/dev/raidframe/rf_diskqueue.c
index 0ec366513c2..22f3e90a203 100644
--- a/sys/dev/raidframe/rf_diskqueue.c
+++ b/sys/dev/raidframe/rf_diskqueue.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_diskqueue.c,v 1.30 2004/02/29 04:03:50 oster Exp $ */
+/* $NetBSD: rf_diskqueue.c,v 1.31 2004/03/05 02:53:55 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -66,7 +66,7 @@
****************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.30 2004/02/29 04:03:50 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.31 2004/03/05 02:53:55 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -149,8 +149,7 @@ static const RF_DiskQueueSW_t diskqueuesw[] = {
static struct pool rf_dqd_pool;
#define RF_MAX_FREE_DQD 256
-#define RF_DQD_INC 16
-#define RF_DQD_INITIAL 64
+#define RF_MIN_FREE_DQD 64
#include <sys/buf.h>
@@ -193,7 +192,8 @@ rf_ConfigureDiskQueueSystem(RF_ShutdownList_t **listp)
pool_init(&rf_dqd_pool, sizeof(RF_DiskQueueData_t), 0, 0, 0,
"rf_dqd_pl", NULL);
pool_sethiwat(&rf_dqd_pool, RF_MAX_FREE_DQD);
- pool_prime(&rf_dqd_pool, RF_DQD_INITIAL);
+ pool_prime(&rf_dqd_pool, RF_MIN_FREE_DQD);
+ pool_setlowat(&rf_dqd_pool, RF_MIN_FREE_DQD);
rf_ShutdownCreate(listp, rf_ShutdownDiskQueueSystem, NULL);