diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2016-12-10 00:32:10 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2016-12-10 00:32:10 +0000 |
commit | e16e812203dba3d6bb0e3ced69a66a74fcab962d (patch) | |
tree | 300cba4f0089351450448ebdc7b98d586a9ea002 /sys/fs/nfs/nfs_commonport.c | |
parent | 5b792c63e4f7009f266f2ce9f32389b19d2fee12 (diff) | |
download | FreeBSD-src-e16e812203dba3d6bb0e3ced69a66a74fcab962d.zip FreeBSD-src-e16e812203dba3d6bb0e3ced69a66a74fcab962d.tar.gz |
MFC: r309171
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.
Diffstat (limited to 'sys/fs/nfs/nfs_commonport.c')
-rw-r--r-- | sys/fs/nfs/nfs_commonport.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sys/fs/nfs/nfs_commonport.c b/sys/fs/nfs/nfs_commonport.c index 23a861d..85ddca2 100644 --- a/sys/fs/nfs/nfs_commonport.c +++ b/sys/fs/nfs/nfs_commonport.c @@ -608,21 +608,6 @@ nfssvc_call(struct thread *p, struct nfssvc_args *uap, struct ucred *cred) 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, |