aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-23 11:35:47 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-24 10:44:49 -0400
commitd0bea455dd48da1ecbd04fedf00eb89437455fdc (patch)
tree75f7f748bbcc8c501d1429268bd4163b028cb184 /net
parent0e9e3e306c7e472bdcffa34c4c4584301eda03b3 (diff)
SUNRPC: Clear the connect flag when socket state is TCP_CLOSE_WAIT
This is needed to ensure that we call xprt_connect() upon the next call to call_connect(). Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: stable@vger.kernel.org Tested-by: Chris Perl <chris.perl@gmail.com>
Diffstat (limited to 'net')
-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 aaaadfbe36e9..6e6967d5400e 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1516,6 +1516,7 @@ static void xs_tcp_state_change(struct sock *sk)
1516 case TCP_CLOSE_WAIT: 1516 case TCP_CLOSE_WAIT:
1517 /* The server initiated a shutdown of the socket */ 1517 /* The server initiated a shutdown of the socket */
1518 xprt->connect_cookie++; 1518 xprt->connect_cookie++;
1519 clear_bit(XPRT_CONNECTED, &xprt->state);
1519 xs_tcp_force_close(xprt); 1520 xs_tcp_force_close(xprt);
1520 case TCP_CLOSING: 1521 case TCP_CLOSING:
1521 /* 1522 /*