Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Dec 2016 00:32:11 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r309781 - stable/11/sys/fs/nfs
Message-ID:  <201612100032.uBA0WBXZ051759@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmacklem
Date: Sat Dec 10 00:32:10 2016
New Revision: 309781
URL: https://svnweb.freebsd.org/changeset/base/309781

Log:
  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.

Modified:
  stable/11/sys/fs/nfs/nfs_commonport.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/fs/nfs/nfs_commonport.c
==============================================================================
--- stable/11/sys/fs/nfs/nfs_commonport.c	Fri Dec  9 23:44:25 2016	(r309780)
+++ stable/11/sys/fs/nfs/nfs_commonport.c	Sat Dec 10 00:32:10 2016	(r309781)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612100032.uBA0WBXZ051759>