mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
NFSv4.1 remove xprt from xprt_switch if session trunking test fails
If we are doing a session trunking test and it fails for the transport, then remove this transport from the xprt_switch group. Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
497e6464d6
commit
e818bd085b
@ -8922,6 +8922,9 @@ void nfs4_test_session_trunk(struct rpc_clnt *clnt, struct rpc_xprt *xprt,
|
||||
|
||||
if (status == 0)
|
||||
rpc_clnt_xprt_switch_add_xprt(clnt, xprt);
|
||||
else if (rpc_clnt_xprt_switch_has_addr(clnt,
|
||||
(struct sockaddr *)&xprt->addr))
|
||||
rpc_clnt_xprt_switch_remove_xprt(clnt, xprt);
|
||||
|
||||
rpc_put_task(task);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user