summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/mcd.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2004-02-15 02:45:46 +0000
committertedu <tedu@openbsd.org>2004-02-15 02:45:46 +0000
commit35fa4c39e7e446b9e461e0899753548be778d66a (patch)
tree65098d9e27fadd6ea99b2eb7e25f05c6322f5515 /sys/dev/isa/mcd.c
parentbreak in default switch cases (diff)
downloadwireguard-openbsd-35fa4c39e7e446b9e461e0899753548be778d66a.tar.xz
wireguard-openbsd-35fa4c39e7e446b9e461e0899753548be778d66a.zip
new arg to disk_unbusy, to record separate read/write statistics.
looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
Diffstat (limited to 'sys/dev/isa/mcd.c')
-rw-r--r--sys/dev/isa/mcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/mcd.c b/sys/dev/isa/mcd.c
index e8f3a57205a..bc66a2839ba 100644
--- a/sys/dev/isa/mcd.c
+++ b/sys/dev/isa/mcd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcd.c,v 1.32 2003/04/06 15:28:25 krw Exp $ */
+/* $OpenBSD: mcd.c,v 1.33 2004/02/15 02:45:47 tedu Exp $ */
/* $NetBSD: mcd.c,v 1.60 1998/01/14 12:14:41 drochner Exp $ */
/*
@@ -1241,7 +1241,7 @@ mcdintr(arg)
/* Return buffer. */
bp->b_resid = 0;
- disk_unbusy(&sc->sc_dk, bp->b_bcount);
+ disk_unbusy(&sc->sc_dk, bp->b_bcount, (bp->b_flags & B_READ));
biodone(bp);
mcdstart(sc);