提交 585f0dd5 编写于 作者: N NeilBrown 提交者: Linus Torvalds

[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: NNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 9e6603da
...@@ -522,6 +522,7 @@ static int bitmap_read_sb(struct bitmap *bitmap) ...@@ -522,6 +522,7 @@ static int bitmap_read_sb(struct bitmap *bitmap)
/* assign fields using values from superblock */ /* assign fields using values from superblock */
bitmap->chunksize = chunksize; bitmap->chunksize = chunksize;
bitmap->daemon_sleep = daemon_sleep; bitmap->daemon_sleep = daemon_sleep;
bitmap->daemon_lastrun = jiffies;
bitmap->max_write_behind = write_behind; bitmap->max_write_behind = write_behind;
bitmap->flags |= sb->state; bitmap->flags |= sb->state;
bitmap->events_cleared = le64_to_cpu(sb->events_cleared); bitmap->events_cleared = le64_to_cpu(sb->events_cleared);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册