mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
SUNRPC: xs_reset_transport must mark the connection as disconnected
commit 0c78789e3a upstream.
In case the reconnection attempt fails.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c62629f866
commit
42a53a0cf9
@@ -829,6 +829,7 @@ static void xs_reset_transport(struct sock_xprt *transport)
|
|||||||
sk->sk_user_data = NULL;
|
sk->sk_user_data = NULL;
|
||||||
|
|
||||||
xs_restore_old_callbacks(transport, sk);
|
xs_restore_old_callbacks(transport, sk);
|
||||||
|
xprt_clear_connected(xprt);
|
||||||
write_unlock_bh(&sk->sk_callback_lock);
|
write_unlock_bh(&sk->sk_callback_lock);
|
||||||
xs_sock_reset_connection_flags(xprt);
|
xs_sock_reset_connection_flags(xprt);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user