aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd
diff options
context:
space:
mode:
authorLars Ellenberg <lars.ellenberg@linbit.com>2011-06-14 08:18:23 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-06-30 03:23:43 -0400
commit5a8b424276f7ba50c51e7caf485b2be23739e5b8 (patch)
tree001a7250e631db20a5bc3d9fd667dc8a817d9c1f /drivers/block/drbd
parent8ccee20e3ef4e12dbf02a18f17d386569b1f73ee (diff)
drbd: account bitmap IO during resync as resync-(related-)-io
If we have a good resync rate, we will frequently update the on-disk bitmap, which, if not accounted for as resync io, may let an otherwise idle device appear to be "busy", and cause us to throttle resync. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd')
-rw-r--r--drivers/block/drbd/drbd_bitmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c
index 61f4fae9f67e..7b976296b564 100644
--- a/drivers/block/drbd/drbd_bitmap.c
+++ b/drivers/block/drbd/drbd_bitmap.c
@@ -991,6 +991,9 @@ static void bm_page_io_async(struct bm_aio_ctx *ctx, int page_nr, int rw) __must
991 bio_endio(bio, -EIO); 991 bio_endio(bio, -EIO);
992 } else { 992 } else {
993 submit_bio(rw, bio); 993 submit_bio(rw, bio);
994 /* this should not count as user activity and cause the
995 * resync to throttle -- see drbd_rs_should_slow_down(). */
996 atomic_add(len >> 9, &mdev->rs_sect_ev);
994 } 997 }
995} 998}
996 999