summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_diskqueue.c
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2004-02-29 04:03:50 +0000
committeroster <oster@NetBSD.org>2004-02-29 04:03:50 +0000
commit5a02af5b2137cc7b754a822f3138147472b8dc65 (patch)
tree0805307e12eb721415c3729ecaacb94fed9a9656 /sys/dev/raidframe/rf_diskqueue.c
parentda96c7f542cd08525a7f3e36990b82defa3fd1bd (diff)
Adjust _rf_ShutdownCreate() so that it is willing to wait for more
memory. Since we only now ever "return(0)", just return (void) instead. Cleanup all uses of rf_ShutdownCreate() to not worry about it ever failing. Shaves another 600 bytes off of an i386 GENERIC kernel.
Diffstat (limited to 'sys/dev/raidframe/rf_diskqueue.c')
-rw-r--r--sys/dev/raidframe/rf_diskqueue.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/dev/raidframe/rf_diskqueue.c b/sys/dev/raidframe/rf_diskqueue.c
index b4b3aef6c10..0ec366513c2 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.29 2004/01/01 19:27:35 oster Exp $ */
+/* $NetBSD: rf_diskqueue.c,v 1.30 2004/02/29 04:03:50 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.29 2004/01/01 19:27:35 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.30 2004/02/29 04:03:50 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -186,22 +186,16 @@ rf_ShutdownDiskQueueSystem(void *ignored)
pool_destroy(&rf_dqd_pool);
}
-int
+int
rf_ConfigureDiskQueueSystem(RF_ShutdownList_t **listp)
{
- int rc;
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);
- rc = rf_ShutdownCreate(listp, rf_ShutdownDiskQueueSystem, NULL);
- if (rc) {
- rf_print_unable_to_add_shutdown( __FILE__, __LINE__, rc);
- rf_ShutdownDiskQueueSystem(NULL);
- return (rc);
- }
+ rf_ShutdownCreate(listp, rf_ShutdownDiskQueueSystem, NULL);
return (0);
}