SUNRPC: Fix rpc_task_force_reencode

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>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Trond Myklebust and committed by Linus Torvalds 2574cc9f ea6bff36

+1
+1
net/sunrpc/clnt.c
··· 937 rpc_task_force_reencode(struct rpc_task *task) 938 { 939 task->tk_rqstp->rq_snd_buf.len = 0; 940 } 941 942 static inline void
··· 937 rpc_task_force_reencode(struct rpc_task *task) 938 { 939 task->tk_rqstp->rq_snd_buf.len = 0; 940 + task->tk_rqstp->rq_bytes_sent = 0; 941 } 942 943 static inline void