summaryrefslogtreecommitdiff
path: root/sys/dev/ata/wd.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2004-02-15 02:45:48 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2004-02-15 02:45:48 +0000
commitbafaa11c619a93cd4b705e4cca3a65baa2688326 (patch)
treecab08efe46eb2822ef440f2d84e9c243d779a3a9 /sys/dev/ata/wd.c
parent1218bfa7ac931aa5372051060561ce67ec995924 (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/dev/ata/wd.c')
-rw-r--r--sys/dev/ata/wd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c
index bb65c803715..79b39710eb8 100644
--- a/sys/dev/ata/wd.c
+++ b/sys/dev/ata/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.38 2004/02/02 21:29:38 tedu Exp $ */
+/* $OpenBSD: wd.c,v 1.39 2004/02/15 02:45:47 tedu Exp $ */
/* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */
/*
@@ -648,7 +648,8 @@ noerror: if ((wd->sc_wdc_bio.flags & ATA_CORR) || wd->retries > 0)
printf("%s: soft error (corrected)\n",
wd->sc_dev.dv_xname);
}
- disk_unbusy(&wd->sc_dk, (bp->b_bcount - bp->b_resid));
+ disk_unbusy(&wd->sc_dk, (bp->b_bcount - bp->b_resid),
+ (bp->b_flags & B_READ));
#if NRND > 0
rnd_add_uint32(&wd->rnd_source, bp->b_blkno);
#endif