From: NeilBrown Date: Fri, 9 Sep 2005 23:23:49 +0000 (-0700) Subject: [PATCH] md: make sure bitmap_daemon_work actually does work. X-Git-Tag: v2.6.14-rc1~245 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=585f0dd5a955c420ff3af5193aa07d6f789bf81a;p=linux-2.6 [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 2c84de2b4a..f0f510c134 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);