nfsd: protect concurrent access to nfsd stats counters
authorAmir Goldstein <amir73il@gmail.com>
Wed, 6 Jan 2021 07:52:35 +0000 (09:52 +0200)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 25 Jan 2021 14:36:27 +0000 (09:36 -0500)
commite567b98ce9a4b35b63c364d24828a9e5cd7a8179
tree7c59a1e119f6e11cb195a08d7fe055857186194f
parent1b76d1df1a3683b6b23cd1c813d13c5e6a9d35e5
nfsd: protect concurrent access to nfsd stats counters

nfsd stats counters can be updated by concurrent nfsd threads without any
protection.

Convert some nfsd_stats and nfsd_net struct members to use percpu counters.

The longest_chain* members of struct nfsd_net remain unprotected.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/netns.h
fs/nfsd/nfs4proc.c
fs/nfsd/nfscache.c
fs/nfsd/nfsctl.c
fs/nfsd/nfsfh.c
fs/nfsd/stats.c
fs/nfsd/stats.h
fs/nfsd/vfs.c