Commit 74f4331a authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] md: fix jiffies handling in md.c

Use time_after_eq instead of >=

From: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>
Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 364e2a1b
......@@ -3394,7 +3394,7 @@ static void md_do_sync(mddev_t *mddev)
break;
repeat:
if (jiffies >= mark[last_mark] + SYNC_MARK_STEP ) {
if (time_after_eq(jiffies, mark[last_mark] + SYNC_MARK_STEP )) {
/* step marks */
int next = (last_mark+1) % SYNC_MARKS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment