aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/xprt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c
index 0eea2bfe111b..c144611223fc 100644
--- a/net/sunrpc/xprt.c
+++ b/net/sunrpc/xprt.c
@@ -195,8 +195,8 @@ EXPORT_SYMBOL_GPL(xprt_load_transport);
195 */ 195 */
196int xprt_reserve_xprt(struct rpc_task *task) 196int xprt_reserve_xprt(struct rpc_task *task)
197{ 197{
198 struct rpc_xprt *xprt = task->tk_xprt;
199 struct rpc_rqst *req = task->tk_rqstp; 198 struct rpc_rqst *req = task->tk_rqstp;
199 struct rpc_xprt *xprt = req->rq_xprt;
200 200
201 if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) { 201 if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) {
202 if (task == xprt->snd_task) 202 if (task == xprt->snd_task)
@@ -858,7 +858,7 @@ out_unlock:
858 858
859void xprt_end_transmit(struct rpc_task *task) 859void xprt_end_transmit(struct rpc_task *task)
860{ 860{
861 xprt_release_write(task->tk_xprt, task); 861 xprt_release_write(task->tk_rqstp->rq_xprt, task);
862} 862}
863 863
864/** 864/**