From: Chuck Lever Date: Wed, 28 May 2014 14:34:41 +0000 (-0400) Subject: xprtrdma: Reset connection timeout after successful reconnect X-Git-Tag: v4.9.8~6278^2~5^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18906972aa1103c07869c9b43860a52e0e27e8e5;p=platform%2Fkernel%2Flinux-rpi3.git xprtrdma: Reset connection timeout after successful reconnect If the new connection is able to make forward progress, reset the re-establish timeout. Otherwise it keeps growing even if disconnect events are rare. The same behavior as TCP is adopted: reconnect immediately if the transport instance has been able to make some forward progress. Signed-off-by: Chuck Lever Signed-off-by: Anna Schumaker --- diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c b/net/sunrpc/xprtrdma/rpc_rdma.c index dc4a826..ac65b0c 100644 --- a/net/sunrpc/xprtrdma/rpc_rdma.c +++ b/net/sunrpc/xprtrdma/rpc_rdma.c @@ -770,6 +770,7 @@ repost: /* from here on, the reply is no longer an orphan */ req->rl_reply = rep; + xprt->reestablish_timeout = 0; /* check for expected message types */ /* The order of some of these tests is important. */