diff options
author | NeilBrown <neilb@cse.unsw.edu.au> | 2005-09-09 19:23:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 19:39:11 -0400 |
commit | 585f0dd5a955c420ff3af5193aa07d6f789bf81a (patch) | |
tree | 9ee200366c1c92d2e9b6a44288a375007825d018 /drivers | |
parent | 9e6603da9b9cfb14a6aca3845227f8c59f7eeb9b (diff) |
[PATCH] md: make sure bitmap_daemon_work actually does work.
The 'lastrun' time wasn't being initialised, so it could be half a
jiffie-cycle before it seemed to be time to do work again.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/bitmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 2c84de2b4ad5..f0f510c13410 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c | |||
@@ -522,6 +522,7 @@ success: | |||
522 | /* assign fields using values from superblock */ | 522 | /* assign fields using values from superblock */ |
523 | bitmap->chunksize = chunksize; | 523 | bitmap->chunksize = chunksize; |
524 | bitmap->daemon_sleep = daemon_sleep; | 524 | bitmap->daemon_sleep = daemon_sleep; |
525 | bitmap->daemon_lastrun = jiffies; | ||
525 | bitmap->max_write_behind = write_behind; | 526 | bitmap->max_write_behind = write_behind; |
526 | bitmap->flags |= sb->state; | 527 | bitmap->flags |= sb->state; |
527 | bitmap->events_cleared = le64_to_cpu(sb->events_cleared); | 528 | bitmap->events_cleared = le64_to_cpu(sb->events_cleared); |