[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>
This commit is contained in:
committed by
Trond Myklebust
parent
0f9dc2b168
commit
20e5ac828d
@@ -1101,8 +1101,7 @@ tcp_state_change(struct sock *sk)
|
|||||||
case TCP_SYN_RECV:
|
case TCP_SYN_RECV:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (xprt_test_and_clear_connected(xprt))
|
xprt_disconnect(xprt);
|
||||||
rpc_wake_up_status(&xprt->pending, -ENOTCONN);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
|
Reference in New Issue
Block a user