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-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c78789e3a030615c6650fde89546cadf40ec2cc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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);