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.1.9~91 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f160db25e9c4baa65871f4f7972064f1d7ecb160;p=users%2Fjedix%2Flinux-maple.git 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 f191b3e7c3861..3f7ba7051ec0e 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -834,6 +834,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);