diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-08-28 11:12:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-08 20:33:25 -0700 |
commit | 820eeda9c642baf97f908b042b9dc3c6c0bf8995 (patch) | |
tree | ba34c400d89384104e9b7b843446005c3fc2ac07 | |
parent | 64aeda1a592f38c5d419993d403d2ea1df03ea12 (diff) | |
download | lwn-820eeda9c642baf97f908b042b9dc3c6c0bf8995.tar.gz lwn-820eeda9c642baf97f908b042b9dc3c6c0bf8995.zip |
SUNRPC: Fix rpc_task_force_reencode
commit 2574cc9f4ffc6c681c9177111357efe5b76f0e36 upstream.
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | 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 5abab094441f..8d02e050ac39 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -876,6 +876,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 |