mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* SUNRPC: Fix rpc_task_force_reencode
@ 2009-08-28 15:12 Trond Myklebust
  0 siblings, 0 replies; only message in thread
From: Trond Myklebust @ 2009-08-28 15:12 UTC (permalink / raw)
  To: Linus Torvalds, stable; +Cc: linux-kernel, linux-nfs

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.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
---
Please apply to mainline and stable

 net/sunrpc/clnt.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index c1e467e..fac0ca9 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -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

-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@netapp.com
www.netapp.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-28 15:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-28 15:12 SUNRPC: Fix rpc_task_force_reencode Trond Myklebust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®