aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
authorChuck Lever <cel@netapp.com>2005-08-25 19:25:51 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-09-23 12:38:40 -0400
commit49e9a89086b3cae784a4868ca852863e4f4ea3fe (patch)
tree5ba197fc1767fee5590b892b2f19aeb3583494c4 /net/sunrpc/xprtsock.c
parent12a804698b29d040b7cdd92e8a44b0e75164dae9 (diff)
[PATCH] RPC: expose API for serializing access to RPC transports
The next method we abstract is the one that releases a transport, allowing another task to have access to the transport. Again, one generic version of this is provided for transports that don't need the RPC client to perform congestion control, and one version is for transports that can use the original Van Jacobson implementation in xprt.c. 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 fc4fbe8ea346..8589c1ad55e3 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1046,6 +1046,7 @@ static void xs_connect(struct rpc_task *task)
1046static struct rpc_xprt_ops xs_udp_ops = { 1046static 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 .reserve_xprt = xprt_reserve_xprt_cong, 1048 .reserve_xprt = xprt_reserve_xprt_cong,
1049 .release_xprt = xprt_release_xprt_cong,
1049 .connect = xs_connect, 1050 .connect = xs_connect,
1050 .send_request = xs_udp_send_request, 1051 .send_request = xs_udp_send_request,
1051 .set_retrans_timeout = xprt_set_retrans_timeout_rtt, 1052 .set_retrans_timeout = xprt_set_retrans_timeout_rtt,
@@ -1056,6 +1057,7 @@ static struct rpc_xprt_ops xs_udp_ops = {
1056static struct rpc_xprt_ops xs_tcp_ops = { 1057static struct rpc_xprt_ops xs_tcp_ops = {
1057 .set_buffer_size = xs_tcp_set_buffer_size, 1058 .set_buffer_size = xs_tcp_set_buffer_size,
1058 .reserve_xprt = xprt_reserve_xprt, 1059 .reserve_xprt = xprt_reserve_xprt,
1060 .release_xprt = xprt_release_xprt,
1059 .connect = xs_connect, 1061 .connect = xs_connect,
1060 .send_request = xs_tcp_send_request, 1062 .send_request = xs_tcp_send_request,
1061 .set_retrans_timeout = xprt_set_retrans_timeout_def, 1063 .set_retrans_timeout = xprt_set_retrans_timeout_def,