summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNeilBrown2005-06-22 02:17:16 +0200
committerLinus Torvalds2005-06-22 04:07:44 +0200
commit5f40402d96cb21df912e5bbb3fffa5e1afc81e98 (patch)
tree9c2085ce7615898461fc9b61e9dd46aa7f6c7ce1 /drivers
parent[PATCH] md: a couple of tidyups relating to the bitmap file. (diff)
downloadkernel-qcow2-linux-5f40402d96cb21df912e5bbb3fffa5e1afc81e98.tar.gz
kernel-qcow2-linux-5f40402d96cb21df912e5bbb3fffa5e1afc81e98.tar.xz
kernel-qcow2-linux-5f40402d96cb21df912e5bbb3fffa5e1afc81e98.zip
[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 <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/md.c3
1 files changed, 2 insertions, 1 deletions
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;