linux/drivers/block/drbd
Lars Ellenberg ff8bd88b73 drbd: fix resync throttling initialization
If for some reason DRBD resync was the only activity on a backend
device, drbd_rs_c_min_rate_throttle() would mistakenly decide that it is
still initialization time, and keep throttling the resync.

This patch explicitly initializes ->rs_last_events to the current
backend event counters, and drops the rs_last_events == 0 from the
throttle condition.

Reported-by: Mikhail Sugakov <msugakov@amazon.de>

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>
2014-11-10 09:27:37 -07:00
..
drbd_actlog.c drbd: Minor cleanups 2014-11-10 09:27:30 -07:00
drbd_bitmap.c drbd: Use consistent names for all the bi_end_io callbacks 2014-09-11 08:41:29 -06:00
drbd_debugfs.c drbd: Remove superfluous newline from "resync_extents" debugfs entry. 2014-09-11 08:41:29 -06:00
drbd_debugfs.h drbd: debugfs: add basic hierarchy 2014-07-10 18:35:16 +02:00
drbd_int.h drbd: Only use drbd_msg_put_info() in drbd_nl.c 2014-11-10 09:27:33 -07:00
drbd_interval.c drbd: use RB_DECLARE_CALLBACKS() to define augment callbacks 2014-09-18 09:00:17 -06:00
drbd_interval.h drbd: application writes may set-in-sync in protocol != C 2014-07-10 18:35:02 +02:00
drbd_main.c drbd: Only use drbd_msg_put_info() in drbd_nl.c 2014-11-10 09:27:33 -07:00
drbd_nl.c drbd: fix race between role change and handshake 2014-11-10 09:27:35 -07:00
drbd_nla.c drbd: Remove drbd_wrappers.h 2014-04-30 13:46:54 -06:00
drbd_nla.h drbd: Split off netlink mandatory attribute handling into separate file 2012-11-08 16:57:45 +01:00
drbd_proc.c drbd: Add missing newline in resync progress display in /proc/drbd 2014-09-11 08:41:29 -06:00
drbd_protocol.h drbd: Enable QUEUE_FLAG_DISCARD only if the peer can recieve P_TRIM 2014-04-30 13:46:55 -06:00
drbd_receiver.c drbd: fix resync throttling initialization 2014-11-10 09:27:37 -07:00
drbd_req.c drbd: Avoid inconsistent locking warning 2014-09-11 08:41:29 -06:00
drbd_req.h drbd: silence -Wmissing-prototypes warnings 2014-07-10 18:34:57 +02:00
drbd_state.c drbd: fix resync throttling initialization 2014-11-10 09:27:37 -07:00
drbd_state.h drbd: fix race between role change and handshake 2014-11-10 09:27:35 -07:00
drbd_strings.c drbd: Move string function prototypes from linux/drbd.h to drbd_string.h 2014-02-17 16:50:37 +01:00
drbd_strings.h drbd: Move string function prototypes from linux/drbd.h to drbd_string.h 2014-02-17 16:50:37 +01:00
drbd_vli.h Fix common misspellings 2011-03-31 11:26:23 -03:00
drbd_worker.c drbd: fix resync throttling initialization 2014-11-10 09:27:37 -07:00
Kconfig drbd: update Kconfig to match current dependencies 2012-12-06 13:08:29 +01:00
Makefile drbd: debugfs: add basic hierarchy 2014-07-10 18:35:16 +02:00