aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
authorChuck Lever <cel@netapp.com>2005-08-25 19:25:50 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-09-23 12:38:36 -0400
commitfe3aca290f17ae4978bd73d02aa4029f1c9c024c (patch)
tree4fbaa255e9e7a85f41eacb7cf1214dc44a90bcea /net/sunrpc/xprtsock.c
parent43118c29dea2b23798bd42a147015cceee7fa885 (diff)
[PATCH] RPC: add API to set transport-specific timeouts
Prepare the way to remove the "xprt->nocong" variable by adding a callout to the RPC client transport switch API to handle setting RPC retransmit timeouts. Add a pair of generic helper functions that provide the ability to set a simple fixed timeout, or to set a timeout based on the state of a round- trip estimator. Test-plan: Use WAN simulation to cause sporadic bursty packet loss. Look for significant regression in performance or client stability. Signed-off-by: Chuck Lever <cel@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 5bb6fed3df34..79433ffd1df0 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1047,6 +1047,7 @@ static struct rpc_xprt_ops xs_udp_ops = {
1047 .set_buffer_size = xs_udp_set_buffer_size, 1047 .set_buffer_size = xs_udp_set_buffer_size,
1048 .connect = xs_connect, 1048 .connect = xs_connect,
1049 .send_request = xs_udp_send_request, 1049 .send_request = xs_udp_send_request,
1050 .set_retrans_timeout = xprt_set_retrans_timeout_rtt,
1050 .close = xs_close, 1051 .close = xs_close,
1051 .destroy = xs_destroy, 1052 .destroy = xs_destroy,
1052}; 1053};
@@ -1055,6 +1056,7 @@ static struct rpc_xprt_ops xs_tcp_ops = {
1055 .set_buffer_size = xs_tcp_set_buffer_size, 1056 .set_buffer_size = xs_tcp_set_buffer_size,
1056 .connect = xs_connect, 1057 .connect = xs_connect,
1057 .send_request = xs_tcp_send_request, 1058 .send_request = xs_tcp_send_request,
1059 .set_retrans_timeout = xprt_set_retrans_timeout_def,
1058 .close = xs_close, 1060 .close = xs_close,
1059 .destroy = xs_destroy, 1061 .destroy = xs_destroy,
1060}; 1062};