Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933987AbZIDUOR (ORCPT ); Fri, 4 Sep 2009 16:14:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933978AbZIDUOP (ORCPT ); Fri, 4 Sep 2009 16:14:15 -0400 Received: from kroah.org ([198.145.64.141]:36109 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933942AbZIDUOM (ORCPT ); Fri, 4 Sep 2009 16:14:12 -0400 X-Mailbox-Line: From gregkh@mini.kroah.org Fri Sep 4 13:08:50 2009 Message-Id: <20090904200850.690791337@mini.kroah.org> User-Agent: quilt/0.48-1 Date: Fri, 04 Sep 2009 13:07:17 -0700 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: stable-review@kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Trond Myklebust Subject: [patch 05/48] SUNRPC: Fix rpc_task_force_reencode References: <20090904200712.724048145@mini.kroah.org> Content-Disposition: inline; filename=sunrpc-fix-rpc_task_force_reencode.patch In-Reply-To: <20090904201112.GA8274@kroah.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1224 Lines: 30 2.6.27-stable review patch. If anyone has any objections, please let us know. ------------------ From: Trond Myklebust 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 Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- net/sunrpc/clnt.c | 1 + 1 file changed, 1 insertion(+) --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -860,6 +860,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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/