Handle jiffies wrap

This commit is contained in:
Tom Marshall 2019-11-14 18:37:28 +01:00
parent 45676ae7d1
commit be3d28a255
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}