Skip to contentSkip to conversation

SUNRPC: Fix rpc_task_force_reencode

PATCH Trond Myklebust 1 participant 1 message Aug 28, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

This patch fixes the bug that was reported in
http://bugzilla.kernel.org/show_bug.cgi?id=14053

If we're in the case where we need to force a reencode and then resend of the RPC request, due to xprt_transmit failing with a networking error, then we _must_ retransmit the entire request.

---
Please apply to mainline and stable

 net/sunrpc/clnt.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/sunrpc/clnt.c +1 -0
index c1e467e..fac0ca9 100644
@@ -955,6 +955,7 @@ static inline void
 rpc_task_force_reencode(struct rpc_task *task)
 {
 	task->tk_rqstp->rq_snd_buf.len = 0;
+	task->tk_rqstp->rq_bytes_sent = 0;
 }
 
 static inline void
Signature · 6 lines
Trond Myklebust
Linux NFS client maintainer

NetApp
[email protected]
www.netapp.com