Skip to content

Commit

Permalink
[PATCH] md: call bitmap_daemon_work regularly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Jun 22, 2005
1 parent 78d742d commit 5f40402
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5f40402

Please sign in to comment.