diff options
| author | thorpej <thorpej@NetBSD.org> | 2003-02-25 20:35:31 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2003-02-25 20:35:31 +0000 |
| commit | eb14e866760f574eec4780202b889ac3bbc49d89 (patch) | |
| tree | 7314d0576ed195cf1d15bb6231040e383da37f78 /sys/dev/raidframe | |
| parent | cc005c66dbc79b15c3eb81d26efb64aa8cefbf9c (diff) | |
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.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_netbsdkintf.c | 8 |
1 files changed, 3 insertions, 5 deletions
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 <sys/cdefs.h> -__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 <sys/param.h> #include <sys/errno.h> @@ -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.. */ |
