Whamcloud - gitweb
LU-11300 lnet: consider alive_router_check_interval 98/33298/34
authorAmir Shehata <ashehata@whamcloud.com>
Fri, 5 Oct 2018 01:28:49 +0000 (18:28 -0700)
committerAmir Shehata <ashehata@whamcloud.com>
Fri, 7 Jun 2019 18:17:13 +0000 (18:17 +0000)
Consider router_check_interval when waking up the monitor thread,
to make sure you wakeup the monitor thread at the earliest possible
time.

Test-Parameters: forbuildonly
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: Ibc4b53886b59a9bc174a29d0da711ac77db3a62c
Reviewed-on: https://review.whamcloud.com/33298
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Tested-by: Jenkins
lnet/lnet/lib-move.c

index c6265af..d4f1bd9 100644 (file)
@@ -3402,7 +3402,8 @@ lnet_monitor_thread(void *arg)
                 * 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,
                                                cfs_time_seconds(interval));