aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@cse.unsw.edu.au>2005-06-21 20:17:16 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 22:07:44 -0400
commit5f40402d96cb21df912e5bbb3fffa5e1afc81e98 (patch)
tree9c2085ce7615898461fc9b61e9dd46aa7f6c7ce1 /drivers/md/md.c
parent78d742d876bdf7263d0d966fbe9593559fd904a7 (diff)
[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/md/md.c')
-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)
3635 struct list_head *rtmp; 3635 struct list_head *rtmp;
3636 3636
3637 3637
3638 dprintk(KERN_INFO "md: recovery thread got woken up ...\n"); 3638 if (mddev->bitmap)
3639 bitmap_daemon_work(mddev->bitmap);
3639 3640
3640 if (mddev->ro) 3641 if (mddev->ro)
3641 return; 3642 return;