aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/clnt.c
diff options
context:
space:
mode:
authorTrond Myklebust <trondmy@gmail.com>2019-01-02 17:53:10 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-01-15 15:28:18 -0500
commite66721f0436396f779291a29616858b76bfd9415 (patch)
tree51babcbf00d649f71eea4e17e0f1b336e314ac5b /net/sunrpc/clnt.c
parent45ac486ecf2dc998e25cf32f0cabf2deaad875be (diff)
downloadlinux-e66721f0436396f779291a29616858b76bfd9415.tar.gz
SUNRPC: Ensure rq_bytes_sent is reset before request transmission
When we resend a request, ensure that the 'rq_bytes_sent' is reset to zero. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r--net/sunrpc/clnt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 71d9599b581659..0878c793ce7fd6 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1739,7 +1739,6 @@ rpc_xdr_encode(struct rpc_task *task)
xdr_buf_init(&req->rq_rcv_buf,
req->rq_rbuffer,
req->rq_rcvsize);
- req->rq_bytes_sent = 0;
p = rpc_encode_header(task);
if (p == NULL) {