Linux NFS development
 help / color / mirror / Atom feed
* Re: [PATCH 01/04]  NFS/RDMA client stall patches
@ 2008-05-19  3:50 Peter Leckie
  2008-06-10 19:24 ` Trond Myklebust
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Leckie @ 2008-05-19  3:50 UTC (permalink / raw)
  To: talpey; +Cc: linux-nfs

Don't call __xprt_get_cong() if this is a retransmit.
This prevents __xprt_get_cong() from recursively
incrementing the congestion avoidance window for
retransmitted data.

Signed-off-by: Peter Leckie <pleckie-cP1dWloDopni96+mSzHFpQC/G2K4zDHf@public.gmane.org>
Reviewed-by: Greg Banks <gnb-cP1dWloDopni96+mSzHFpQC/G2K4zDHf@public.gmane.org>
X-Sgi-Pv: 971446
 <http://bugworks/query.cgi/971446>---
Index: linux-2.6.25.3/net/sunrpc/xprt.c
===================================================================
--- linux-2.6.25.3.orig/net/sunrpc/xprt.c
+++ linux-2.6.25.3/net/sunrpc/xprt.c
@@ -224,7 +224,8 @@ int xprt_reserve_xprt_cong(struct rpc_ta
                        return 1;
                goto out_sleep;
        }
-       if (__xprt_get_cong(xprt, task)) {
+     /*If this is a retransmit don't increment cong*/
+       if ((req && req->rq_ntrans) ||__xprt_get_cong(xprt, task)) {
                xprt->snd_task = task;
                if (req) {
                        req->rq_bytes_sent = 0;



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-06-12  8:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-19  3:50 [PATCH 01/04] NFS/RDMA client stall patches Peter Leckie
2008-06-10 19:24 ` Trond Myklebust
2008-06-11  8:03   ` Peter Leckie
2008-06-11 13:53     ` Talpey, Thomas
     [not found]       ` <RTPCLUEXC1-PRDaogxL000001eb-rtwIt2gI0FxT+ZUat5FNkAK/GNPrWCqfQQ4Iyu8u01E@public.gmane.org>
2008-06-12  8:45         ` Peter Leckie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox