diff options
Diffstat (limited to 'net/sunrpc/xprt.c')
-rw-r--r-- | net/sunrpc/xprt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index 839f6ef2326..efe5495ecf6 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c | |||
@@ -715,9 +715,7 @@ void xprt_connect(struct rpc_task *task) | |||
715 | if (xprt_connected(xprt)) | 715 | if (xprt_connected(xprt)) |
716 | xprt_release_write(xprt, task); | 716 | xprt_release_write(xprt, task); |
717 | else { | 717 | else { |
718 | if (task->tk_rqstp) | 718 | task->tk_rqstp->rq_bytes_sent = 0; |
719 | task->tk_rqstp->rq_bytes_sent = 0; | ||
720 | |||
721 | task->tk_timeout = task->tk_rqstp->rq_timeout; | 719 | task->tk_timeout = task->tk_rqstp->rq_timeout; |
722 | rpc_sleep_on(&xprt->pending, task, xprt_connect_status); | 720 | rpc_sleep_on(&xprt->pending, task, xprt_connect_status); |
723 | 721 | ||