From: nathan Date: Mon, 3 Sep 2007 14:48:19 +0000 (+0000) Subject: b=3055 X-Git-Tag: v1_8_0_110~1272 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=0992b38798a76629ba77bcefba93dfcc84521639;p=fs%2Flustre-release.git b=3055 at SOW watchdogs are too short using AT only --- diff --git a/lustre/ptlrpc/service.c b/lustre/ptlrpc/service.c index 42918aa..8470fc7 100644 --- a/lustre/ptlrpc/service.c +++ b/lustre/ptlrpc/service.c @@ -1251,7 +1251,7 @@ static int ptlrpc_main(void *arg) */ cfs_waitq_signal(&thread->t_ctl_waitq); - watchdog = lc_watchdog_add((AT_OFF ? obd_timeout : + watchdog = lc_watchdog_add(max_t(int, obd_timeout, AT_OFF ? 0 : at_get(&svc->srv_at_estimate)) * svc->srv_watchdog_factor, NULL, NULL); @@ -1289,7 +1289,8 @@ static int ptlrpc_main(void *arg) svc->srv_at_check, &lwi); - lc_watchdog_touch_ms(watchdog, (AT_OFF ? obd_timeout : + lc_watchdog_touch_ms(watchdog, max_t(int, obd_timeout, + AT_OFF ? 0 : at_get(&svc->srv_at_estimate)) * svc->srv_watchdog_factor);