Whamcloud - gitweb
LU-12931 gnilnd: use time_after() to compare jiffies
[fs/lustre-release.git] / lnet / klnds / gnilnd / gnilnd_stack.c
index 411dbff..bab50cb 100644 (file)
@@ -135,7 +135,7 @@ kgnilnd_quiesce_wait(char *reason)
                        CFS_RACE(CFS_FAIL_GNI_QUIESCE_RACE);
                        schedule_timeout_uninterruptible(cfs_time_seconds(i));
 
-                       LASSERTF(quiesce_deadline > jiffies,
+                       LASSERTF(time_after(quiesce_deadline, jiffies),
                                 "couldn't quiesce threads in %lu seconds, falling over now\n",
                                 cfs_duration_sec(quiesce_to));
                }