Skip to content
Commit 10e037d1 authored by Santosh kumar pradhan's avatar Santosh kumar pradhan Committed by Anna Schumaker
Browse files

sunrpc: Add xprt after nfs4_test_session_trunk()



Multipathing: In case of NFSv3, rpc_clnt_test_and_add_xprt() adds
the xprt to xprt switch (i.e. xps) if rpc_call_null_helper() returns
success. But in case of NFSv4.1, it needs to do EXCHANGEID to verify
the path along with check for session trunking.

Add the xprt in nfs4_test_session_trunk() only when
nfs4_detect_session_trunking() returns success. Also release refcount
hold by rpc_clnt_setup_test_and_add_xprt().

Signed-off-by: default avatarSantosh kumar pradhan <santoshkumar.pradhan@wdc.com>
Tested-by: default avatarSuresh Jayaraman <suresh.jayaraman@wdc.com>
Reported-by: default avatarAditya Agnihotri <aditya.agnihotri@wdc.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent cb24e35b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment