diff options
| author | Jeff Layton <jlayton@kernel.org> | 2026-07-17 07:08:56 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-08-10 09:54:35 -0400 |
| commit | 5e4c283cb32f5d66618ffa9b5403ea09a60f2b61 (patch) | |
| tree | c22f36f6d669a80b05714f7e9d2c7f0bbb55e9be /net/sunrpc | |
| parent | 36ed32f46e2aa35084fa0e6edecc3f0a6178489f (diff) | |
| download | linux-5e4c283cb32f5d66618ffa9b5403ea09a60f2b61.tar.gz linux-5e4c283cb32f5d66618ffa9b5403ea09a60f2b61.zip | |
sunrpc: remove unused svc_version vs_count field
Now that svc_seq_show() and the nfsd netlink stats handler both use
the per-netns svc_stat vs_count arrays, the global per-version
vs_count percpu counters are no longer read by anything. Remove the
vs_count field from struct svc_version and all the associated
DEFINE_PER_CPU_ALIGNED arrays and initializers across nfsd, lockd,
and the NFS client callback service.
Assisted-by: LLM
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260717-exportd-netlink-v7-4-b7ce17b83b60@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'net/sunrpc')
| -rw-r--r-- | net/sunrpc/svc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 9b27c43309a4..8297bad2b177 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -1344,9 +1344,6 @@ svc_generic_init_request(struct svc_rqst *rqstp, memset(rqstp->rq_argp, 0, procp->pc_argzero); memset(rqstp->rq_resp, 0, procp->pc_ressize); - /* Bump per-procedure stats counter */ - this_cpu_inc(versp->vs_count[rqstp->rq_proc]); - /* Bump per-net per-procedure stats counter */ if (rqstp->rq_server->sv_stats && rqstp->rq_server->sv_stats->program == progp && |
