summaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-08-29 13:36:30 -0700
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-08-29 13:40:32 -0700
commit0c78789e3a030615c6650fde89546cadf40ec2cc (patch)
treea8f326418313c62ee1b5711af95c1137e4e5e881 /net/sunrpc
parent6669cb8bed02ec1b60e80f2e1e317afc28544207 (diff)
downloadlinux-stable-0c78789e3a030615c6650fde89546cadf40ec2cc.tar.gz
linux-stable-0c78789e3a030615c6650fde89546cadf40ec2cc.tar.bz2
linux-stable-0c78789e3a030615c6650fde89546cadf40ec2cc.zip
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')
-rw-r--r--net/sunrpc/xprtsock.c1
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)
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);