diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2008-06-10 20:50:24 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2008-06-10 20:50:24 +0000 |
commit | 7b9768b8af911b0c6b25a9d357325da1ba59bb5d (patch) | |
tree | efc090ddc427809559d58206f200871b45a38646 /sys/arch/hp300/dev | |
parent | 3f3e2ade58622197d4b76525efe04c26e77b070c (diff) |
Fix buffer cache pending read statistics by ensuring we can identify
biowait() reads that do *not* come from the buffer cache - we use the
B_RAW flag to identify these at art's suggestion - since it makes sense
and the flag was not being used. this just flags all these buffers with
B_RAW - biodone already ignores returned buffers marked B_RAW.
ok art@
Diffstat (limited to 'sys/arch/hp300/dev')
-rw-r--r-- | sys/arch/hp300/dev/ct.c | 4 | ||||
-rw-r--r-- | sys/arch/hp300/dev/mt.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hp300/dev/ct.c b/sys/arch/hp300/dev/ct.c index b6577c31318..ce23c6eeba7 100644 --- a/sys/arch/hp300/dev/ct.c +++ b/sys/arch/hp300/dev/ct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ct.c,v 1.18 2007/06/06 17:15:11 deraadt Exp $ */ +/* $OpenBSD: ct.c,v 1.19 2008/06/10 20:50:22 beck Exp $ */ /* $NetBSD: ct.c,v 1.21 1997/04/02 22:37:23 scottr Exp $ */ /* @@ -431,7 +431,7 @@ ctcommand(dev, cmd, cnt) } while (cnt-- > 0) { - bp->b_flags = B_BUSY; + bp->b_flags = B_BUSY | B_RAW; if (cmd == MTBSF) { sc->sc_blkno = sc->sc_eofs[sc->sc_eofp]; sc->sc_eofp--; diff --git a/sys/arch/hp300/dev/mt.c b/sys/arch/hp300/dev/mt.c index 39f35576a9b..13385b29ece 100644 --- a/sys/arch/hp300/dev/mt.c +++ b/sys/arch/hp300/dev/mt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mt.c,v 1.18 2007/06/06 17:15:11 deraadt Exp $ */ +/* $OpenBSD: mt.c,v 1.19 2008/06/10 20:50:22 beck Exp $ */ /* $NetBSD: mt.c,v 1.8 1997/03/31 07:37:29 scottr Exp $ */ /* @@ -407,7 +407,7 @@ mtcommand(dev, cmd, cnt) bp->b_cmd = cmd; bp->b_dev = dev; do { - bp->b_flags = B_BUSY | B_CMD; + bp->b_flags = B_BUSY | B_CMD | B_RAW; mtstrategy(bp); biowait(bp); if (bp->b_flags & B_ERROR) { |