diff options
Diffstat (limited to 'drivers/block/drbd/drbd_worker.c')
-rw-r--r-- | drivers/block/drbd/drbd_worker.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c index 6cfc5417da8e..a050eb0d93ba 100644 --- a/drivers/block/drbd/drbd_worker.c +++ b/drivers/block/drbd/drbd_worker.c | |||
@@ -1185,7 +1185,13 @@ int w_e_end_ov_reply(struct drbd_conf *mdev, struct drbd_work *w, int cancel) | |||
1185 | 1185 | ||
1186 | drbd_free_ee(mdev, e); | 1186 | drbd_free_ee(mdev, e); |
1187 | 1187 | ||
1188 | if (--mdev->ov_left == 0) { | 1188 | --mdev->ov_left; |
1189 | |||
1190 | /* let's advance progress step marks only for every other megabyte */ | ||
1191 | if ((mdev->ov_left & 0x200) == 0x200) | ||
1192 | drbd_advance_rs_marks(mdev, mdev->ov_left); | ||
1193 | |||
1194 | if (mdev->ov_left == 0) { | ||
1189 | ov_oos_print(mdev); | 1195 | ov_oos_print(mdev); |
1190 | drbd_resync_finished(mdev); | 1196 | drbd_resync_finished(mdev); |
1191 | } | 1197 | } |