From 23e70fc50082547972f5818951c8059631e3dcd4 Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Wed, 23 Jul 2008 16:24:44 +0000 Subject: Correct cases of mishandling of pending reads and writes to prevent them going negative - this consists of identifying a number of cases of IO not going through the buffer cache and marking those buffers with B_RAW - as well as fixing nfs_bio to show pending writes and reads through the buffer cache via NFS still has a problem with mishandling the counters I believe in the async/sync fallback case where counters stay positive which will be addressed seperately. ok tedu@ deraadt@ --- sys/nfs/nfs_vnops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/nfs/nfs_vnops.c') diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 2741ca34473..bc1e604c86a 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vnops.c,v 1.95 2008/07/23 11:53:07 art Exp $ */ +/* $OpenBSD: nfs_vnops.c,v 1.96 2008/07/23 16:24:43 beck Exp $ */ /* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */ /* @@ -2997,6 +2997,7 @@ nfs_writebp(bp, force) } if( (oldflags & B_ASYNC) == 0) { + bp->b_flags |= B_RAW; int rtval = biowait(bp); if (!(oldflags & B_DELWRI) && p) { ++p->p_stats->p_ru.ru_oublock; -- cgit v1.2.3