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:
Trond Myklebust
2015-08-29 13:36:30 -07:00
committed by Greg Kroah-Hartman
parent c62629f866
commit 42a53a0cf9

View File

@@ -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);