From ad00b9c9b0703d70223ea91e7cae8da00a83dcf2 Mon Sep 17 00:00:00 2001 From: oster Date: Sun, 21 Dec 2003 15:56:20 +0000 Subject: 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(). --- sys/dev/raidframe/rf_callback.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/raidframe/rf_callback.c') 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 -__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 #include @@ -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); -- cgit