aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprt.c
diff options
context:
space:
mode:
authorChuck Lever <cel@netapp.com>2005-06-22 13:16:28 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-06-22 16:07:32 -0400
commit20e5ac828dfd23b9080159c62a34f32d2dcd92fc (patch)
tree4edb9b0ae0e9b0a529f7f710f7a2276e44fa3425 /net/sunrpc/xprt.c
parent0f9dc2b16884bb5957d010ed8e9114e771a05916 (diff)
[PATCH] RPC: TCP reconnects are too slow
When the network layer reports a connection close, the RPC task waiting to reconnect should be notified so it can retry immediately instead of waiting for the normal connection establishment timeout. This reverts a change made in 2.6.6 as part of adding client support for RPC over TCP socket idle timeouts. Test-plan: Destructive testing with NFS over TCP mounts. Version: Fri, 29 Apr 2005 15:31:46 -0400 Signed-off-by: Chuck Lever <cel@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprt.c')
-rw-r--r--net/sunrpc/xprt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c
index a74a1289113e..2b8789cf8db1 100644
--- a/net/sunrpc/xprt.c
+++ b/net/sunrpc/xprt.c
@@ -1101,8 +1101,7 @@ tcp_state_change(struct sock *sk)
1101 case TCP_SYN_RECV: 1101 case TCP_SYN_RECV:
1102 break; 1102 break;
1103 default: 1103 default:
1104 if (xprt_test_and_clear_connected(xprt)) 1104 xprt_disconnect(xprt);
1105 rpc_wake_up_status(&xprt->pending, -ENOTCONN);
1106 break; 1105 break;
1107 } 1106 }
1108 out: 1107 out: