svn commit: r309171 - head/sys/fs/nfs
Rick Macklem
rmacklem at FreeBSD.org
Fri Nov 25 23:28:11 UTC 2016
Author: rmacklem
Date: Fri Nov 25 23:28:09 2016
New Revision: 309171
URL: https://svnweb.freebsd.org/changeset/base/309171
Log:
Stop "nfsstat -z" from clearing counts of NFSv4 state structures.
The "-z" option on nfsstats was erroneously zeroing out the counts
of NFSv4 state structures. These counts will normally go back down
to zero as state is released. When zeroed out by "-z", these counts
can go negative. This patch fixes this problem.
MFC after: 2 weeks
Modified:
head/sys/fs/nfs/nfs_commonport.c
Modified: head/sys/fs/nfs/nfs_commonport.c
==============================================================================
--- head/sys/fs/nfs/nfs_commonport.c Fri Nov 25 22:36:07 2016 (r309170)
+++ head/sys/fs/nfs/nfs_commonport.c Fri Nov 25 23:28:09 2016 (r309171)
@@ -608,21 +608,6 @@ nfssvc_call(struct thread *p, struct nfs
nfsstatsv1.srvcache_nonidemdonehits = 0;
nfsstatsv1.srvcache_misses = 0;
nfsstatsv1.srvcache_tcppeak = 0;
- nfsstatsv1.srvclients = 0;
- nfsstatsv1.srvopenowners = 0;
- nfsstatsv1.srvopens = 0;
- nfsstatsv1.srvlockowners = 0;
- nfsstatsv1.srvlocks = 0;
- nfsstatsv1.srvdelegates = 0;
- nfsstatsv1.clopenowners = 0;
- nfsstatsv1.clopens = 0;
- nfsstatsv1.cllockowners = 0;
- nfsstatsv1.cllocks = 0;
- nfsstatsv1.cldelegates = 0;
- nfsstatsv1.cllocalopenowners = 0;
- nfsstatsv1.cllocalopens = 0;
- nfsstatsv1.cllocallockowners = 0;
- nfsstatsv1.cllocallocks = 0;
bzero(nfsstatsv1.srvrpccnt,
sizeof(nfsstatsv1.srvrpccnt));
bzero(nfsstatsv1.cbrpccnt,
More information about the svn-src-all
mailing list