Skip to content

Bugfixes and tracing enhancements for knfsd

Trond Myklebust linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8nfsd: Don't add locks to closed or closing open stateidsfs/nfsd/nfs4state.c+43 -300 replies
2/8nfsd: Add tracing to nfsd_set_fh_dentry()fs/nfsd/nfsfh.c fs/nfsd/trace.h+40 -33 replies
3/8nfsd: Add tracepoints for exp_find_key() and exp_get_by_name()fs/nfsd/export.c fs/nfsd/trace.h+53 -20 replies
4/8nfsd: Add tracepoints for update of the expkey and export cache entriesfs/nfsd/export.c fs/nfsd/trace.h+61 -90 replies
5/8nfsd: export upcalls must not return ESTALE when mountd is downfs/nfs/dns_resolve.c fs/nfsd/export.c fs/nfsd/nfs4idmap.c +4 more+85 -320 replies
6/8SUNRPC/cache: Allow garbage collection of invalid cache entriesinclude/linux/sunrpc/cache.h net/sunrpc/cache.c+19 -200 replies
7/8sunrpc: Add tracing for cache eventsinclude/trace/events/sunrpc.h net/sunrpc/cache.c+59 -90 replies
8/8sunrpc: Drop the connection when the server drops a requestnet/sunrpc/svc_xprt.c+10 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] Bugfixes and tracing enhancements for knfsd

This series fixes an Oops that has been getting in the way of testing NFSv4.1 in the last few weeks. It adds a number of tracepoints around the knfsd cache and upcall mechanism in order to help debugging, then fixes a few races caused by the cache_listeners_exist() mechanism and goes back to addressing the garbage collection timeouts.

Finally, it fixes the long standing issue that knfsd will drop requests without dropping the TCP connection, something which violates the NFSv4 protocol.

Trond Myklebust (8):
nfsd: Don't add locks to closed or closing open stateids
nfsd: Add tracing to nfsd_set_fh_dentry()
nfsd: Add tracepoints for exp_find_key() and exp_get_by_name()
nfsd: Add tracepoints for update of the expkey and export cache
entries
nfsd: export upcalls must not return ESTALE when mountd is down SUNRPC/cache: Allow garbage collection of invalid cache entries
sunrpc: Add tracing for cache events
sunrpc: Drop the connection when the server drops a request

 fs/nfs/dns_resolve.c              |  11 +--
 fs/nfsd/export.c                  |  45 ++++++++---
 fs/nfsd/nfs4idmap.c               |  14 ++++
 fs/nfsd/nfs4state.c               |  73 ++++++++++--------
 fs/nfsd/nfsfh.c                   |  13 +++-
 fs/nfsd/trace.h                   | 122 +++++++++++++++++++++++++++++
 include/linux/sunrpc/cache.h      |   6 +-
 include/trace/events/sunrpc.h     |  33 ++++++++
 net/sunrpc/auth_gss/svcauth_gss.c |  12 +++
 net/sunrpc/cache.c                | 124 +++++++++++++++++-------------
 net/sunrpc/svc_xprt.c             |  10 +++
 net/sunrpc/svcauth_unix.c         |  12 +++
 12 files changed, 370 insertions(+), 105 deletions(-)
Signature · 1 line
2.24.1