diff options
| author | hannken <hannken@NetBSD.org> | 2002-07-21 15:32:17 +0000 |
|---|---|---|
| committer | hannken <hannken@NetBSD.org> | 2002-07-21 15:32:17 +0000 |
| commit | 7de36862a80fa785c81a97230571bef40f691df1 (patch) | |
| tree | 32c3da8de4aad4b9fb0765fa2c32066f6eb4e48e /sys/dev/raidframe | |
| parent | 6cac77a3ea375fa2be30962819d2674c7722f1e8 (diff) | |
Rename bufq_init() to bufq_alloc().
Add bufq_free() to remove a buffer queue.
Avoid MALLOC while holding a spinlock.
From Chuck Silvers.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_netbsdkintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c index 74348b7eaa0..8a01fbb9c6c 100644 --- a/sys/dev/raidframe/rf_netbsdkintf.c +++ b/sys/dev/raidframe/rf_netbsdkintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_netbsdkintf.c,v 1.125 2002/07/20 16:34:15 hannken Exp $ */ +/* $NetBSD: rf_netbsdkintf.c,v 1.126 2002/07/21 15:32:18 hannken Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -114,7 +114,7 @@ ***********************************************************/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.125 2002/07/20 16:34:15 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.126 2002/07/21 15:32:18 hannken Exp $"); #include <sys/param.h> #include <sys/errno.h> @@ -366,7 +366,7 @@ raidattach(num) } for (raidID = 0; raidID < num; raidID++) { - bufq_init(&raid_softc[raidID].buf_queue, BUFQ_FCFS); + bufq_alloc(&raid_softc[raidID].buf_queue, BUFQ_FCFS); raidrootdev[raidID].dv_class = DV_DISK; raidrootdev[raidID].dv_cfdata = NULL; |
