From 7de36862a80fa785c81a97230571bef40f691df1 Mon Sep 17 00:00:00 2001 From: hannken Date: Sun, 21 Jul 2002 15:32:17 +0000 Subject: Rename bufq_init() to bufq_alloc(). Add bufq_free() to remove a buffer queue. Avoid MALLOC while holding a spinlock. From Chuck Silvers. --- sys/dev/raidframe/rf_netbsdkintf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/raidframe') 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 -__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 #include @@ -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; -- cgit