diff options
author | NeilBrown <neilb@cse.unsw.edu.au> | 2005-09-10 01:23:49 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-10 01:39:11 +0200 |
commit | 585f0dd5a955c420ff3af5193aa07d6f789bf81a (patch) | |
tree | 9ee200366c1c92d2e9b6a44288a375007825d018 /drivers/md | |
parent | [PATCH] md: raid1_quiesce is back to front, fix it. (diff) | |
download | linux-585f0dd5a955c420ff3af5193aa07d6f789bf81a.tar.xz linux-585f0dd5a955c420ff3af5193aa07d6f789bf81a.zip |
[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 '')
-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: /* assign fields using values from superblock */ bitmap->chunksize = chunksize; bitmap->daemon_sleep = daemon_sleep; + bitmap->daemon_lastrun = jiffies; bitmap->max_write_behind = write_behind; bitmap->flags |= sb->state; bitmap->events_cleared = le64_to_cpu(sb->events_cleared); |