drbd: resync: fix too large bursts for very slow rates
While merging adjacent dirty blocks into resync requests, the resync rate throttle was disregarded. For very low resync rates, the effective rate may have exceeded the intended rate by a larger margin. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
9ae472605a
commit
6377b92350
1 changed files with 1 additions and 1 deletions
|
@ -647,7 +647,7 @@ static int make_resync_request(struct drbd_device *device, int cancel)
|
|||
*/
|
||||
align = 1;
|
||||
rollback_i = i;
|
||||
for (;;) {
|
||||
while (i < number) {
|
||||
if (size + BM_BLOCK_SIZE > max_bio_size)
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue