Skip to content

Commit

Permalink
[PATCH] RPC: TCP reconnects are too slow
Browse files Browse the repository at this point in the history
 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>
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Jun 22, 2005
1 parent 0f9dc2b commit 20e5ac8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/sunrpc/xprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1101,8 +1101,7 @@ tcp_state_change(struct sock *sk)
case TCP_SYN_RECV:
break;
default:
if (xprt_test_and_clear_connected(xprt))
rpc_wake_up_status(&xprt->pending, -ENOTCONN);
xprt_disconnect(xprt);
break;
}
out:
Expand Down

0 comments on commit 20e5ac8

Please sign in to comment.