Skip to content

Commit 1890697

Browse files
chuckleveramschuma-ntap
authored andcommitted
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 <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
1 parent bfaee09 commit 1890697

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sunrpc/xprtrdma/rpc_rdma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@ rpcrdma_reply_handler(struct rpcrdma_rep *rep)
770770

771771
/* from here on, the reply is no longer an orphan */
772772
req->rl_reply = rep;
773+
xprt->reestablish_timeout = 0;
773774

774775
/* check for expected message types */
775776
/* The order of some of these tests is important. */

0 commit comments

Comments
 (0)