SUNRPC: Fix rpc_task_force_reencode
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Aug 2009 15:12:12 +0000 (11:12 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:16:57 +0000 (20:16 -0700)
commit994e0b57b4ea1ee1726d31a7e669200b34405df7
treec512b261f8efc958e096926fcd2b8400d51a2517
parent4233307591d5a86c0712487b57a3939f9d31d8c9
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>
net/sunrpc/clnt.c