aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-01-08 09:48:15 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-02-01 10:13:47 -0500
commit6a24dfb645dbcb05b34d08b991d082bdaa3ff072 (patch)
tree4d99948bb2bcb1170778bc668dc4d64e327e8175 /net/sunrpc/xprtsock.c
parent3dc0da278e2b26fa8e353b3a962b2c89e184d353 (diff)
SUNRPC: Pass pointers to struct rpc_xprt to the congestion window
Avoid access to task->tk_xprt Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index f7d6e4f8c162..37cbda63f45c 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1005,7 +1005,7 @@ static void xs_udp_data_ready(struct sock *sk, int len)
1005 1005
1006 UDPX_INC_STATS_BH(sk, UDP_MIB_INDATAGRAMS); 1006 UDPX_INC_STATS_BH(sk, UDP_MIB_INDATAGRAMS);
1007 1007
1008 xprt_adjust_cwnd(task, copied); 1008 xprt_adjust_cwnd(xprt, task, copied);
1009 xprt_complete_rqst(task, copied); 1009 xprt_complete_rqst(task, copied);
1010 1010
1011 out_unlock: 1011 out_unlock:
@@ -1646,9 +1646,9 @@ static void xs_udp_set_buffer_size(struct rpc_xprt *xprt, size_t sndsize, size_t
1646 * 1646 *
1647 * Adjust the congestion window after a retransmit timeout has occurred. 1647 * Adjust the congestion window after a retransmit timeout has occurred.
1648 */ 1648 */
1649static void xs_udp_timer(struct rpc_task *task) 1649static void xs_udp_timer(struct rpc_xprt *xprt, struct rpc_task *task)
1650{ 1650{
1651 xprt_adjust_cwnd(task, -ETIMEDOUT); 1651 xprt_adjust_cwnd(xprt, task, -ETIMEDOUT);
1652} 1652}
1653 1653
1654static unsigned short xs_get_random_port(void) 1654static unsigned short xs_get_random_port(void)