diff options
Diffstat (limited to 'drivers/block/drbd/drbd_receiver.c')
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 3b95eef07546..10db70a23376 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -4340,7 +4340,13 @@ static int got_OVResult(struct drbd_conf *mdev, struct p_header80 *h) | |||
4340 | drbd_rs_complete_io(mdev, sector); | 4340 | drbd_rs_complete_io(mdev, sector); |
4341 | dec_rs_pending(mdev); | 4341 | dec_rs_pending(mdev); |
4342 | 4342 | ||
4343 | if (--mdev->ov_left == 0) { | 4343 | --mdev->ov_left; |
4344 | |||
4345 | /* let's advance progress step marks only for every other megabyte */ | ||
4346 | if ((mdev->ov_left & 0x200) == 0x200) | ||
4347 | drbd_advance_rs_marks(mdev, mdev->ov_left); | ||
4348 | |||
4349 | if (mdev->ov_left == 0) { | ||
4344 | w = kmalloc(sizeof(*w), GFP_NOIO); | 4350 | w = kmalloc(sizeof(*w), GFP_NOIO); |
4345 | if (w) { | 4351 | if (w) { |
4346 | w->cb = w_ov_finished; | 4352 | w->cb = w_ov_finished; |