summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_reconmap.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_reconmap.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_reconmap.c')
-rw-r--r--sys/dev/raidframe/rf_reconmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_reconmap.c b/sys/dev/raidframe/rf_reconmap.c
index e3cbddbbde8..e0d71bd32b1 100644
--- a/sys/dev/raidframe/rf_reconmap.c
+++ b/sys/dev/raidframe/rf_reconmap.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_reconmap.c,v 1.16 2003/12/21 07:53:59 simonb Exp $ */
+/* $NetBSD: rf_reconmap.c,v 1.17 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_reconmap.c,v 1.16 2003/12/21 07:53:59 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_reconmap.c,v 1.17 2003/12/21 15:56:20 oster Exp $");
#include "rf_raid.h"
#include <sys/time.h>
@@ -111,6 +111,7 @@ rf_MakeReconMap(raidPtr, ru_sectors, disk_sectors, spareUnitsPerDisk)
pool_init(&p->elem_pool, sizeof(RF_ReconMapListElem_t), 0,
0, 0, "raidreconpl", NULL);
+ pool_prime(&p->elem_pool, RF_NUM_RECON_POOL_ELEM);
rc = rf_mutex_init(&p->mutex);
if (rc) {