]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drbd: drbd_rs_number_requests: fix unit mismatch in comparison
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 22 Apr 2014 14:37:16 +0000 (16:37 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Jul 2014 16:35:06 +0000 (18:35 +0200)
commit7f34f61490ee87a470cf229069d59b0987f42a59
treee76e93c15ce7283d656f508b5c1c88189bd8be66
parentf88c5d90ccca70841af88ba9456ba4aac6d10da8
drbd: drbd_rs_number_requests: fix unit mismatch in comparison

We try to limit the number of "in-flight" resync requests.
One condition for that is the amount of requested data should not exceed
half of what can be covered by our "max-buffers" setting.

However we compared number of 4k pages with number of in-flight 512 Byte
sectors, and this extra throttle triggered much earlier than intended.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_worker.c