[lustre-devel] [PATCH 344/622] lnet: consider alive_router_check_interval

James Simmons jsimmons at infradead.org
Thu Feb 27 13:13:32 PST 2020


From: Amir Shehata <ashehata at whamcloud.com>

Consider router_check_interval when waking up the monitor thread,
to make sure you wakeup the monitor thread at the earliest possible
time.

WC-bug-id: https://jira.whamcloud.com/browse/LU-11300
Lustre-commit: 434456256f30 ("LU-11300 lnet: consider alive_router_check_interval")
Signed-off-by: Amir Shehata <ashehata at whamcloud.com>
Reviewed-on: https://review.whamcloud.com/33298
Reviewed-by: Olaf Weber <olaf.weber at hpe.com>
Reviewed-by: Sebastien Buisson <sbuisson at ddn.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
 net/lnet/lnet/lib-move.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/lnet/lnet/lib-move.c b/net/lnet/lnet/lib-move.c
index 054ae48..90b4e3f 100644
--- a/net/lnet/lnet/lib-move.c
+++ b/net/lnet/lnet/lib-move.c
@@ -3142,7 +3142,8 @@ struct lnet_mt_event_info {
 		 * is waking up unnecessarily.
 		 */
 		interval = min(lnet_recovery_interval,
-			       lnet_transaction_timeout / 2);
+			       min((unsigned int)alive_router_check_interval,
+				   lnet_transaction_timeout / 2));
 		wait_event_interruptible_timeout(the_lnet.ln_mt_waitq,
 						 false, HZ * interval);
 	}
-- 
1.8.3.1



More information about the lustre-devel mailing list