diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-01-02 21:54:42 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-02-20 23:33:55 +0100 |
commit | b9779a54bb224cd2a993c9bf8a1910a7494c062e (patch) | |
tree | b330949b2d848cf7fac5650f18bbfff6e1330b11 /net/sunrpc/backchannel_rqst.c | |
parent | SUNRPC: Use poll() to fix up the socket requeue races (diff) | |
download | linux-b9779a54bb224cd2a993c9bf8a1910a7494c062e.tar.xz linux-b9779a54bb224cd2a993c9bf8a1910a7494c062e.zip |
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>
Diffstat (limited to 'net/sunrpc/backchannel_rqst.c')
-rw-r--r-- | net/sunrpc/backchannel_rqst.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sunrpc/backchannel_rqst.c b/net/sunrpc/backchannel_rqst.c index ec451b8114b0..b9313c15ee3a 100644 --- a/net/sunrpc/backchannel_rqst.c +++ b/net/sunrpc/backchannel_rqst.c @@ -252,7 +252,6 @@ static struct rpc_rqst *xprt_alloc_bc_request(struct rpc_xprt *xprt, __be32 xid) req = list_first_entry(&xprt->bc_pa_list, struct rpc_rqst, rq_bc_pa_list); req->rq_reply_bytes_recvd = 0; - req->rq_bytes_sent = 0; memcpy(&req->rq_private_buf, &req->rq_rcv_buf, sizeof(req->rq_private_buf)); req->rq_xid = xid; |