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)
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>

No differences found