Whamcloud - gitweb
LU-5443 lustre: replace direct HZ access with kernel APIs
[fs/lustre-release.git] / lustre / llite / statahead.c
index c62b3ea..ea69243 100644 (file)
@@ -1176,7 +1176,8 @@ out:
         * safely because statahead RPC will access sai data */
        while (sai->sai_sent != sai->sai_replied) {
                /* in case we're not woken up, timeout wait */
-               lwi = LWI_TIMEOUT(HZ >> 3, NULL, NULL);
+               lwi = LWI_TIMEOUT(msecs_to_jiffies(MSEC_PER_SEC >> 3),
+                                 NULL, NULL);
                l_wait_event(thread->t_ctl_waitq,
                        sai->sai_sent == sai->sai_replied, &lwi);
        }