[PATCH 0/2] Improvements to nfsd stats

Amir Goldstein
2020-12-28T17:04:34Z

Hi Bruce,

The original motivation for this work was to add per-export stats.
While doing so, I noticed that most nfsd stats variables are not
protected against concurrent update, so fixed that first.

There are still a couple stats variables (longest_chain*) that are
not counters so less trivial to fix. I did not touch them.

There is also an eyebrow raising number of variabled in nfsd_stats
struct that are never updated. I did not touch those either.
If you want me to send a cleanup patch to remove them and print
hardcoded zeroes in the nfsd stats file I can do that.

Thanks,
Amir.

Amir Goldstein (2):
nfsd: protect concurrent access to nfsd stats counters
nfsd: report per-export stats

fs/nfsd/export.c | 68 +++++++++++++++++++++++++++++++-----
fs/nfsd/export.h | 17 +++++++++
fs/nfsd/netns.h | 20 +++++++----
fs/nfsd/nfs4proc.c | 2 +-
fs/nfsd/nfscache.c | 52 +++++++++++++++++++--------
fs/nfsd/nfsctl.c | 8 ++++-
fs/nfsd/nfsfh.c | 9 +++--
fs/nfsd/stats.c | 87 ++++++++++++++++++++++++++++++++++++----------
fs/nfsd/stats.h | 42 +++++++++++++++-------
fs/nfsd/vfs.c | 6 ++--
10 files changed, 243 insertions(+), 68 deletions(-)

--
2.17.1