diff options
Diffstat (limited to 'net/sunrpc/xprt.c')
-rw-r--r-- | net/sunrpc/xprt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index 456a14510308..5b05b73e4c1d 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c | |||
@@ -823,7 +823,6 @@ static void xprt_request_init(struct rpc_task *task, struct rpc_xprt *xprt) | |||
823 | req->rq_task = task; | 823 | req->rq_task = task; |
824 | req->rq_xprt = xprt; | 824 | req->rq_xprt = xprt; |
825 | req->rq_buffer = NULL; | 825 | req->rq_buffer = NULL; |
826 | req->rq_bufsize = 0; | ||
827 | req->rq_xid = xprt_alloc_xid(xprt); | 826 | req->rq_xid = xprt_alloc_xid(xprt); |
828 | req->rq_release_snd_buf = NULL; | 827 | req->rq_release_snd_buf = NULL; |
829 | xprt_reset_majortimeo(req); | 828 | xprt_reset_majortimeo(req); |
@@ -855,7 +854,7 @@ void xprt_release(struct rpc_task *task) | |||
855 | mod_timer(&xprt->timer, | 854 | mod_timer(&xprt->timer, |
856 | xprt->last_used + xprt->idle_timeout); | 855 | xprt->last_used + xprt->idle_timeout); |
857 | spin_unlock_bh(&xprt->transport_lock); | 856 | spin_unlock_bh(&xprt->transport_lock); |
858 | xprt->ops->buf_free(task); | 857 | xprt->ops->buf_free(req->rq_buffer); |
859 | task->tk_rqstp = NULL; | 858 | task->tk_rqstp = NULL; |
860 | if (req->rq_release_snd_buf) | 859 | if (req->rq_release_snd_buf) |
861 | req->rq_release_snd_buf(req); | 860 | req->rq_release_snd_buf(req); |
@@ -928,6 +927,7 @@ struct rpc_xprt *xprt_create_transport(int proto, struct sockaddr *ap, size_t si | |||
928 | xprt->timer.data = (unsigned long) xprt; | 927 | xprt->timer.data = (unsigned long) xprt; |
929 | xprt->last_used = jiffies; | 928 | xprt->last_used = jiffies; |
930 | xprt->cwnd = RPC_INITCWND; | 929 | xprt->cwnd = RPC_INITCWND; |
930 | xprt->bind_index = 0; | ||
931 | 931 | ||
932 | rpc_init_wait_queue(&xprt->binding, "xprt_binding"); | 932 | rpc_init_wait_queue(&xprt->binding, "xprt_binding"); |
933 | rpc_init_wait_queue(&xprt->pending, "xprt_pending"); | 933 | rpc_init_wait_queue(&xprt->pending, "xprt_pending"); |