nfsd: make svc_stat per-network namespace instead of global
authorJosef Bacik <josef@toxicpanda.com>
Fri, 26 Jan 2024 15:39:49 +0000 (10:39 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:11 +0000 (09:12 -0500)
commit16fb9808ab2c99979f081987752abcbc5b092eac
tree7963592a303d0c257a4e367076ed2ab8bb576159
parente41ee44cc6a473b1f414031782c3b4283d7f3e5f
nfsd: make svc_stat per-network namespace instead of global

The final bit of stats that is global is the rpc svc_stat.  Move this
into the nfsd_net struct and use that everywhere instead of the global
struct.  Remove the unused global struct.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/netns.h
fs/nfsd/nfsctl.c
fs/nfsd/nfssvc.c
fs/nfsd/stats.c
fs/nfsd/stats.h