mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Cc: [email protected] Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ea6bff3685
commit
2574cc9f4f
1 changed files with 1 additions and 0 deletions
|
|
@ -937,6 +937,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue