diff options
author | Olga Kornievskaia <kolga@netapp.com> | 2024-02-02 15:21:13 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2024-03-09 09:14:50 -0500 |
commit | 7e5ae43b2d0eb89560bf7da7c9c745d31bf72ffe (patch) | |
tree | 06c218f02b2e974eb803374bd2996f0f4932511a /fs/nfs/nfs4proc.c | |
parent | fd5860ab6341506004219b080aea40213b299d2e (diff) | |
download | linux-stable-7e5ae43b2d0eb89560bf7da7c9c745d31bf72ffe.tar.gz linux-stable-7e5ae43b2d0eb89560bf7da7c9c745d31bf72ffe.tar.bz2 linux-stable-7e5ae43b2d0eb89560bf7da7c9c745d31bf72ffe.zip |
NFSv4.1: add tracepoint to trunked nfs4_exchange_id calls
Add a tracepoint to track when the client sends EXCHANGE_ID to test
a new transport for session trunking.
nfs4_detect_session_trunking() tests for trunking and returns
EINVAL if trunking can't be done, add EINVAL mapping to
show_nfs4_status() in tracepoints.
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index b2ff8c7a2149..206b4607b29a 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -8970,10 +8970,12 @@ try_again: return; status = task->tk_status; - if (status == 0) + if (status == 0) { status = nfs4_detect_session_trunking(adata->clp, task->tk_msg.rpc_resp, xprt); - + trace_nfs4_trunked_exchange_id(adata->clp, + xprt->address_strings[RPC_DISPLAY_ADDR], status); + } if (status == 0) rpc_clnt_xprt_switch_add_xprt(clnt, xprt); else if (status != -NFS4ERR_DELAY && rpc_clnt_xprt_switch_has_addr(clnt, |