Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87089
b: refs/heads/master
c: 7be3dfe
h: refs/heads/master
i:
  87087: f49b2b3
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Mar 11, 2008
1 parent cb6c62f commit 97e2539
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 52720ae77d392d3f4c12281c37304edbc8cb51f1
refs/heads/master: 7be3dfec4724c51e890455fe48fe188ad7c18b88
4 changes: 3 additions & 1 deletion trunk/drivers/md/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,8 @@ void bitmap_daemon_work(struct bitmap *bitmap)
if (bitmap == NULL)
return;
if (time_before(jiffies, bitmap->daemon_lastrun + bitmap->daemon_sleep*HZ))
return;
goto done;

bitmap->daemon_lastrun = jiffies;
if (bitmap->allclean) {
bitmap->mddev->thread->timeout = MAX_SCHEDULE_TIMEOUT;
Expand Down Expand Up @@ -1142,6 +1143,7 @@ void bitmap_daemon_work(struct bitmap *bitmap)
}
}

done:
if (bitmap->allclean == 0)
bitmap->mddev->thread->timeout = bitmap->daemon_sleep * HZ;
}
Expand Down

0 comments on commit 97e2539

Please sign in to comment.