diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-08-29 16:36:30 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-08-29 16:40:32 -0400 |
commit | 0c78789e3a030615c6650fde89546cadf40ec2cc (patch) | |
tree | a8f326418313c62ee1b5711af95c1137e4e5e881 /net | |
parent | 6669cb8bed02ec1b60e80f2e1e317afc28544207 (diff) |
SUNRPC: xs_reset_transport must mark the connection as disconnected
In case the reconnection attempt fails.
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/xprtsock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 723df7cb096d..214ca9dfb14e 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -829,6 +829,7 @@ static void xs_reset_transport(struct sock_xprt *transport) | |||
829 | sk->sk_user_data = NULL; | 829 | sk->sk_user_data = NULL; |
830 | 830 | ||
831 | xs_restore_old_callbacks(transport, sk); | 831 | xs_restore_old_callbacks(transport, sk); |
832 | xprt_clear_connected(xprt); | ||
832 | write_unlock_bh(&sk->sk_callback_lock); | 833 | write_unlock_bh(&sk->sk_callback_lock); |
833 | xs_sock_reset_connection_flags(xprt); | 834 | xs_sock_reset_connection_flags(xprt); |
834 | 835 | ||