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/sparc64/dev/fd.c | |
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/sparc64/dev/fd.c')
-rw-r--r-- | sys/arch/sparc64/dev/fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/fd.c b/sys/arch/sparc64/dev/fd.c index b2813790bf6..03fcc61b4ef 100644 --- a/sys/arch/sparc64/dev/fd.c +++ b/sys/arch/sparc64/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.21 2008/03/22 22:54:43 krw Exp $ */ +/* $OpenBSD: fd.c,v 1.22 2008/06/10 20:50:23 beck Exp $ */ /* $NetBSD: fd.c,v 1.112 2003/08/07 16:29:35 agc Exp $ */ /*- @@ -1965,7 +1965,7 @@ fdformat(dev, finfo, p) if (bp == NULL) return (ENOBUFS); - bp->b_flags = B_BUSY | B_PHYS | B_FORMAT; + bp->b_flags = B_BUSY | B_PHYS | B_FORMAT | B_RAW; bp->b_proc = p; bp->b_dev = dev; |