Commit 18906972 authored by Chuck Lever's avatar Chuck Lever Committed by Anna Schumaker
Browse files

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: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent bfaee096
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -770,6 +770,7 @@ repost:


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


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