OSDN Git Service

NFSD: Trace delegation revocations
authorChuck Lever <chuck.lever@oracle.com>
Fri, 28 Oct 2022 14:47:09 +0000 (10:47 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 28 Nov 2022 17:54:46 +0000 (12:54 -0500)
commita1c74569bbde91299f24535abf711be5c84df9de
treeb40e8a9e1c94dfe8a8afff48f6340ccdbe5d214a
parent20eee313ff4b8a7e71ae9560f5c4ba27cd763005
NFSD: Trace delegation revocations

Delegation revocation is an exceptional event that is not otherwise
visible externally (eg, no network traffic is emitted). Generate a
trace record when it occurs so that revocation can be observed or
other activity can be triggered. Example:

nfsd-1104  [005]  1912.002544: nfsd_stid_revoke:        client 633c9343:4e82788d stateid 00000003:00000001 ref=2 type=DELEG

Trace infrastructure is provided for subsequent additional tracing
related to nfs4_stid activity.

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