From 78846f582a44e3a2a1e54383699ef50a1f84e2e7 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Thu, 19 Mar 2009 16:44:41 +0000 Subject: We don't count buffercache stats in the B_PHYS case, so fix nfs to not increment the num{read,write} and pending{read,write} statistics in that case, since biodone won't change them on completion. On another note, I'm not sure that we use physical buffers for swapping over nfs anymore, so this chunk may be superfluous. beck@ came up with the same diff "So anyway rather than me commiting it from my copy, I'm giving you the OK and the commit. since it officially makes you a buffer cache and NFS hacker };-)" --- sys/nfs/nfs_bio.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index e09ec7d2d61..5333d90fe96 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_bio.c,v 1.57 2009/01/24 23:30:42 thib Exp $ */ +/* $OpenBSD: nfs_bio.c,v 1.58 2009/03/19 16:44:40 oga Exp $ */ /* $NetBSD: nfs_bio.c,v 1.25.4.2 1996/07/08 20:47:04 jtc Exp $ */ /* @@ -591,15 +591,11 @@ nfs_doio(bp, p) if (bp->b_flags & B_READ) { uiop->uio_rw = UIO_READ; nfsstats.read_physios++; - bcstats.pendingreads++; - bcstats.numreads++; error = nfs_readrpc(vp, uiop); } else { iomode = NFSV3WRITE_DATASYNC; uiop->uio_rw = UIO_WRITE; nfsstats.write_physios++; - bcstats.pendingwrites++; - bcstats.numwrites++; error = nfs_writerpc(vp, uiop, &iomode, &must_commit); } if (error) { -- cgit v1.2.3