X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fservice.c;h=987982aeea24de6da4a016f839b0dc113e39ad0e;hp=974969b16e6678d5b38187ef7844ec4b5d5b101a;hb=594c79f2f855737fa415562a9bbb3fb13aee9ec9;hpb=cebda7a478f9943f10b9a3388377c61a54957a87 diff --git a/lustre/ptlrpc/service.c b/lustre/ptlrpc/service.c index 974969b..987982a 100644 --- a/lustre/ptlrpc/service.c +++ b/lustre/ptlrpc/service.c @@ -2656,7 +2656,8 @@ static void ptlrpc_watchdog_fire(struct work_struct *w) u64 ms_lapse = ktime_ms_delta(ktime_get(), thread->t_touched); u32 ms_frac = do_div(ms_lapse, MSEC_PER_SEC); - if (!__ratelimit(&watchdog_limit)) { + /* ___ratelimit() returns true if the action is NOT ratelimited */ + if (__ratelimit(&watchdog_limit)) { /* below message is checked in sanity-quota.sh test_6,18 */ LCONSOLE_WARN("%s: service thread pid %u was inactive for %llu.%03u seconds. The thread might be hung, or it might only be slow and will resume later. Dumping the stack trace for debugging purposes:\n", thread->t_task->comm, thread->t_task->pid,