drbd: new configuration parameter c-min-rate
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 11 Aug 2010 21:40:24 +0000 (23:40 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 14 Oct 2010 16:38:20 +0000 (18:38 +0200)
commit0f0601f4ea2f53cfd8bcae060fb03d9bbde070ec
tree42bcbd8edf48c9cee526893108cc69b4918a9f64
parent80a40e439e5a3f30b0a6210a1add6d7c33392e54
drbd: new configuration parameter c-min-rate

We now track the data rate of locally submitted resync related requests,
and can thus detect non-resync activity on the lower level device.

If the current sync rate is above c-min-rate, and the lower level device
appears to be busy, we throttle the resyncer.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_nl.c
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_worker.c
include/linux/drbd_limits.h
include/linux/drbd_nl.h