diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-03-19 16:44:41 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-03-19 16:44:41 +0000 |
commit | 78846f582a44e3a2a1e54383699ef50a1f84e2e7 (patch) | |
tree | d6d3ebe6d25848cad124c6ef2b03c2ffa180bbdd /sys/nfs | |
parent | 2fddcd7c4f88c041f8bafef312042a061bd67400 (diff) |
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 };-)"
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_bio.c | 6 |
1 files changed, 1 insertions, 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) { |