From eb14e866760f574eec4780202b889ac3bbc49d89 Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 25 Feb 2003 20:35:31 +0000 Subject: Add a new BUF_INIT() macro which initializes b_dep and b_interlock, and use it. This fixes a few places where either b_dep or b_interlock were not properly initialized. --- sys/dev/raidframe/rf_netbsdkintf.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/dev/raidframe') diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c index aeae2b9712f..32e040631e3 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.154 2003/02/05 21:38:40 pk Exp $ */ +/* $NetBSD: rf_netbsdkintf.c,v 1.155 2003/02/25 20:35:36 thorpej Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -111,7 +111,7 @@ ***********************************************************/ #include -__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.154 2003/02/05 21:38:40 pk Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.155 2003/02/25 20:35:36 thorpej Exp $"); #include #include @@ -1840,7 +1840,7 @@ rf_DispatchKernelIO(queue, req) bp->b_error = ENOMEM; return (ENOMEM); } - simple_lock_init(&raidbp->rf_buf.b_interlock); + BUF_INIT(&raidbp->rf_buf); /* * context for raidiodone @@ -1848,8 +1848,6 @@ rf_DispatchKernelIO(queue, req) raidbp->rf_obp = bp; raidbp->req = req; - LIST_INIT(&raidbp->rf_buf.b_dep); - switch (req->type) { case RF_IO_TYPE_NOP: /* used primarily to unlock a locked queue */ /* XXX need to do something extra here.. */ -- cgit