Handle jiffies wrap
This commit is contained in:
parent
45676ae7d1
commit
be3d28a255
|
@ -735,7 +735,7 @@ lbdcache_flush(struct work_struct* work)
|
|||
lbd = list_first_entry(&lc->flush_head, struct lbd, flush_list);
|
||||
mutex_lock(&lbd->reflock);
|
||||
BUG_ON(lbd->ref != 1);
|
||||
if (lbd->flush_jiffies > now) {
|
||||
if (time_after(lbd->flush_jiffies, now)) {
|
||||
mutex_unlock(&lbd->reflock);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue