From: Trond Myklebust Date: Sat, 29 Aug 2015 20:36:30 +0000 (-0700) Subject: SUNRPC: xs_reset_transport must mark the connection as disconnected X-Git-Tag: v4.2.2~42 X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42a53a0cf97ce58f6b03369f09689e221e6c69d0;p=linux SUNRPC: xs_reset_transport must mark the connection as disconnected commit 0c78789e3a030615c6650fde89546cadf40ec2cc upstream. In case the reconnection attempt fails. Signed-off-by: Trond Myklebust Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 86ed778bb18b..11f4013caa14 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);