summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_callback.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_callback.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_callback.c')
-rw-r--r--sys/dev/raidframe/rf_callback.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_callback.c b/sys/dev/raidframe/rf_callback.c
index 51a5fb95870..c2f74a64d66 100644
--- a/sys/dev/raidframe/rf_callback.c
+++ b/sys/dev/raidframe/rf_callback.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_callback.c,v 1.9 2003/12/21 07:53:59 simonb Exp $ */
+/* $NetBSD: rf_callback.c,v 1.10 2003/12/21 15:56:20 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_callback.c,v 1.9 2003/12/21 07:53:59 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_callback.c,v 1.10 2003/12/21 15:56:20 oster Exp $");
#include <dev/raidframe/raidframevar.h>
#include <sys/pool.h>
@@ -69,6 +69,8 @@ rf_ConfigureCallback(listp)
pool_init(&rf_callback_pool, sizeof(RF_CallbackDesc_t), 0, 0, 0,
"rf_callbackpl", NULL);
pool_sethiwat(&rf_callback_pool, RF_MAX_FREE_CALLBACK);
+ pool_prime(&rf_callback_pool, RF_CALLBACK_INITIAL);
+
rc = rf_ShutdownCreate(listp, rf_ShutdownCallback, NULL);
if (rc) {
rf_print_unable_to_add_shutdown(__FILE__,__LINE__, rc);