NFSD: Add a mechanism to wait for a DELEGRETURN
authorChuck Lever <chuck.lever@oracle.com>
Thu, 8 Sep 2022 22:14:00 +0000 (18:14 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 26 Sep 2022 18:02:32 +0000 (14:02 -0400)
commitc035362eb935fe9381d9d1cc453bc2a37460e24c
treedd9f95c0dd30401bfcc29d7cd7011573e05fe0ea
parent1035d65446a018ca2dd179e29a2fcd6d29057781
NFSD: Add a mechanism to wait for a DELEGRETURN

Subsequent patches will use this mechanism to wake up an operation
that is waiting for a client to return a delegation.

The new tracepoint records whether the wait timed out or was
properly awoken by the expected DELEGRETURN:

            nfsd-1155  [002] 83799.493199: nfsd_delegret_wakeup: xid=0x14b7d6ef fh_hash=0xf6826792 (timed out)

Suggested-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
fs/nfsd/nfs4state.c
fs/nfsd/nfsd.h
fs/nfsd/trace.h