summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2009-03-19 16:44:40 +0000
committeroga <oga@openbsd.org>2009-03-19 16:44:40 +0000
commit1e8927f22ef3b340afcb0eac80033aa7a339a078 (patch)
treee6fe3623c11f703e1d358d148b725bfeaccd3909 /sys
parentFor pass-through commands adjust timeout value to what controller (diff)
downloadwireguard-openbsd-1e8927f22ef3b340afcb0eac80033aa7a339a078.tar.xz
wireguard-openbsd-1e8927f22ef3b340afcb0eac80033aa7a339a078.zip
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')
-rw-r--r--sys/nfs/nfs_bio.c6
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) {