Commit 0cfdd247 authored by Philipp Reisner's avatar Philipp Reisner

drbd: Use the correct max_bio_size when creating resync requests

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent a1c15c59
...@@ -536,12 +536,7 @@ static int w_make_resync_request(struct drbd_conf *mdev, ...@@ -536,12 +536,7 @@ static int w_make_resync_request(struct drbd_conf *mdev,
return 1; return 1;
} }
/* starting with drbd 8.3.8, we can handle multi-bio EEs, max_bio_size = queue_max_hw_sectors(mdev->rq_queue) << 9;
* if it should be necessary */
max_bio_size =
mdev->agreed_pro_version < 94 ? queue_max_hw_sectors(mdev->rq_queue) << 9 :
mdev->agreed_pro_version < 95 ? DRBD_MAX_SIZE_H80_PACKET : DRBD_MAX_BIO_SIZE;
number = drbd_rs_number_requests(mdev); number = drbd_rs_number_requests(mdev);
if (number == 0) if (number == 0)
goto requeue; goto requeue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment