diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-08-29 20:36:30 (GMT) |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-08-29 20:40:32 (GMT) |
commit | 0c78789e3a030615c6650fde89546cadf40ec2cc (patch) | |
tree | a8f326418313c62ee1b5711af95c1137e4e5e881 /net/sunrpc/xprtsock.c | |
parent | 6669cb8bed02ec1b60e80f2e1e317afc28544207 (diff) | |
download | linux-0c78789e3a030615c6650fde89546cadf40ec2cc.tar.xz |
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/sunrpc/xprtsock.c')
-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 723df7c..214ca9d 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -829,6 +829,7 @@ static void xs_reset_transport(struct sock_xprt *transport) sk->sk_user_data = NULL; xs_restore_old_callbacks(transport, sk); + xprt_clear_connected(xprt); write_unlock_bh(&sk->sk_callback_lock); xs_sock_reset_connection_flags(xprt); |