From 7b9768b8af911b0c6b25a9d357325da1ba59bb5d Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Tue, 10 Jun 2008 20:50:24 +0000 Subject: 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@ --- sys/arch/aviion/aviion/disksubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/aviion') diff --git a/sys/arch/aviion/aviion/disksubr.c b/sys/arch/aviion/aviion/disksubr.c index fa266879d38..bc76d44841a 100644 --- a/sys/arch/aviion/aviion/disksubr.c +++ b/sys/arch/aviion/aviion/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.40 2007/11/17 05:32:42 miod Exp $ */ +/* $OpenBSD: disksubr.c,v 1.41 2008/06/10 20:50:22 beck Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -121,7 +121,7 @@ writedisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp) dlp = (struct disklabel *)(bp->b_data + LABELOFFSET); *dlp = *lp; - bp->b_flags = B_BUSY | B_WRITE; + bp->b_flags = B_BUSY | B_WRITE | B_RAW; (*strat)(bp); error = biowait(bp); -- cgit v1.2.3