summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_psstatus.c
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2003-12-21 15:56:20 +0000
committeroster <oster@NetBSD.org>2003-12-21 15:56:20 +0000
commitad00b9c9b0703d70223ea91e7cae8da00a83dcf2 (patch)
treec604e3e6b81eb509ffeaf33d465c86ddb2146aee /sys/dev/raidframe/rf_psstatus.c
parentcb8a9610e0271a07f8e30707db633aea9f66ac36 (diff)
Since the 5th arg of pool_init() wasn't actually the number
of items with which to prime the pool, we now prime each pool using pool_prime().
Diffstat (limited to 'sys/dev/raidframe/rf_psstatus.c')
-rw-r--r--sys/dev/raidframe/rf_psstatus.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_psstatus.c b/sys/dev/raidframe/rf_psstatus.c
index 026b93d7bd0..627e7a67a05 100644
--- a/sys/dev/raidframe/rf_psstatus.c
+++ b/sys/dev/raidframe/rf_psstatus.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_psstatus.c,v 1.13 2003/12/21 07:53:59 simonb Exp $ */
+/* $NetBSD: rf_psstatus.c,v 1.14 2003/12/21 15:56:20 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -37,7 +37,7 @@
*****************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_psstatus.c,v 1.13 2003/12/21 07:53:59 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_psstatus.c,v 1.14 2003/12/21 15:56:20 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -100,7 +100,8 @@ rf_ConfigurePSStatus(
}
pool_sethiwat(&raidPtr->pss_pool, RF_MAX_FREE_PSS);
pool_sethiwat(&raidPtr->pss_issued_pool, RF_MAX_FREE_PSS);
-
+ pool_prime(&raidPtr->pss_pool, RF_PSS_INITIAL);
+ pool_prime(&raidPtr->pss_issued_pool, RF_PSS_INITIAL);
return (0);
}
/*****************************************************************************************