NFS: Refactor trace_nfs4_offload_cancel
authorChuck Lever <chuck.lever@oracle.com>
Mon, 13 Jan 2025 15:32:42 +0000 (10:32 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 17 Mar 2025 20:51:53 +0000 (16:51 -0400)
commit2d6a194f4b27e0fe524bb6da433d6b0f7032e27d
treea36944ac5356cb11306e22ef452e384899be1b92
parentadcc0aef9ed41a82590be4f0090bb404c28a2f2f
NFS: Refactor trace_nfs4_offload_cancel

Add a trace_nfs4_offload_status trace point that looks just like
trace_nfs4_offload_cancel. Promote that event to an event class to
avoid duplicating code.

An alternative approach would be to expand trace_nfs4_offload_status
to report more of the actual OFFLOAD_STATUS result.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Link: https://lore.kernel.org/r/20250113153235.48706-16-cel@kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs42proc.c
fs/nfs/nfs4trace.h