From: NeilBrown Date: Wed, 22 Jun 2005 00:17:16 +0000 (-0700) Subject: [PATCH] md: call bitmap_daemon_work regularly X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5f40402d96cb21df912e5bbb3fffa5e1afc81e98;p=openwrt%2Fstaging%2Fblogic.git [PATCH] md: call bitmap_daemon_work regularly bitmap_daemon_work clears bits in the bitmap for blocks that haven't been written to for a while. It needs to be called regularly to make sure the bitmap doesn't endup full of ones .... but it wasn't. So call it from the increasingly-inaptly-named md_check_recovery Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/md.c b/drivers/md/md.c index 52fafb820f74..b02f8d1d77e7 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -3635,7 +3635,8 @@ void md_check_recovery(mddev_t *mddev) struct list_head *rtmp; - dprintk(KERN_INFO "md: recovery thread got woken up ...\n"); + if (mddev->bitmap) + bitmap_daemon_work(mddev->bitmap); if (mddev->ro) return;