diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-02-15 02:45:48 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-02-15 02:45:48 +0000 |
commit | bafaa11c619a93cd4b705e4cca3a65baa2688326 (patch) | |
tree | cab08efe46eb2822ef440f2d84e9c243d779a3a9 /sys/arch/vax/mba | |
parent | 1218bfa7ac931aa5372051060561ce67ec995924 (diff) |
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/arch/vax/mba')
-rw-r--r-- | sys/arch/vax/mba/hp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/vax/mba/hp.c b/sys/arch/vax/mba/hp.c index d156a49a41e..e0f8a55521d 100644 --- a/sys/arch/vax/mba/hp.c +++ b/sys/arch/vax/mba/hp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hp.c,v 1.14 2003/04/06 22:01:41 miod Exp $ */ +/* $OpenBSD: hp.c,v 1.15 2004/02/15 02:45:46 tedu Exp $ */ /* $NetBSD: hp.c,v 1.22 2000/02/12 16:09:33 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -416,7 +416,8 @@ hper2: sc->sc_dev.dv_xname, mbasr); BUFQ_FIRST(&md->md_q)->b_resid = 0; - disk_unbusy(&sc->sc_disk, BUFQ_FIRST(&md->md_q)->b_bcount); + disk_unbusy(&sc->sc_disk, BUFQ_FIRST(&md->md_q)->b_bcount, + (BUFQ_FIRST(&md->md_q)->b_flags & B_READ)); return XFER_FINISH; } |