diff options
Diffstat (limited to 'net/sunrpc/xprt.c')
-rw-r--r-- | net/sunrpc/xprt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index 6dda3860351f..069a6cbd49ea 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c | |||
@@ -838,6 +838,8 @@ static void xprt_request_init(struct rpc_task *task, struct rpc_xprt *xprt) | |||
838 | req->rq_timeout = xprt->timeout.to_initval; | 838 | req->rq_timeout = xprt->timeout.to_initval; |
839 | req->rq_task = task; | 839 | req->rq_task = task; |
840 | req->rq_xprt = xprt; | 840 | req->rq_xprt = xprt; |
841 | req->rq_buffer = NULL; | ||
842 | req->rq_bufsize = 0; | ||
841 | req->rq_xid = xprt_alloc_xid(xprt); | 843 | req->rq_xid = xprt_alloc_xid(xprt); |
842 | req->rq_release_snd_buf = NULL; | 844 | req->rq_release_snd_buf = NULL; |
843 | dprintk("RPC: %4d reserved req %p xid %08x\n", task->tk_pid, | 845 | dprintk("RPC: %4d reserved req %p xid %08x\n", task->tk_pid, |
@@ -867,6 +869,7 @@ void xprt_release(struct rpc_task *task) | |||
867 | mod_timer(&xprt->timer, | 869 | mod_timer(&xprt->timer, |
868 | xprt->last_used + xprt->idle_timeout); | 870 | xprt->last_used + xprt->idle_timeout); |
869 | spin_unlock_bh(&xprt->transport_lock); | 871 | spin_unlock_bh(&xprt->transport_lock); |
872 | xprt->ops->buf_free(task); | ||
870 | task->tk_rqstp = NULL; | 873 | task->tk_rqstp = NULL; |
871 | if (req->rq_release_snd_buf) | 874 | if (req->rq_release_snd_buf) |
872 | req->rq_release_snd_buf(req); | 875 | req->rq_release_snd_buf(req); |