aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/drbd/drbd_worker.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c
index c72a5fc1c88..daa672fc46e 100644
--- a/drivers/block/drbd/drbd_worker.c
+++ b/drivers/block/drbd/drbd_worker.c
@@ -534,8 +534,9 @@ int w_make_resync_request(struct drbd_conf *mdev,
534 534
535 /* starting with drbd 8.3.8, we can handle multi-bio EEs, 535 /* starting with drbd 8.3.8, we can handle multi-bio EEs,
536 * if it should be necessary */ 536 * if it should be necessary */
537 max_segment_size = mdev->agreed_pro_version < 94 ? 537 max_segment_size =
538 queue_max_segment_size(mdev->rq_queue) : DRBD_MAX_SEGMENT_SIZE; 538 mdev->agreed_pro_version < 94 ? queue_max_segment_size(mdev->rq_queue) :
539 mdev->agreed_pro_version < 95 ? DRBD_MAX_SIZE_H80_PACKET : DRBD_MAX_SEGMENT_SIZE;
539 540
540 if (mdev->rs_plan_s.size) { /* mdev->sync_conf.c_plan_ahead */ 541 if (mdev->rs_plan_s.size) { /* mdev->sync_conf.c_plan_ahead */
541 number = drbd_rs_controller(mdev) >> (BM_BLOCK_SHIFT - 9); 542 number = drbd_rs_controller(mdev) >> (BM_BLOCK_SHIFT - 9);