aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorLars Ellenberg <[email protected]>2014-11-10 17:21:12 +0100
committerJens Axboe <[email protected]>2014-11-10 09:27:37 -0700
commitff8bd88b73fad369a12465dfa52ad5c0bf088ced (patch)
treef142942ea9b5529bc82591da749eee816f56d4bc /lib/mpi/mpiutil.c
parenta88215312c5ed74697973f6c9f0fce718bcf18ad (diff)
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 <[email protected]> Signed-off-by: Philipp Reisner <[email protected]> Signed-off-by: Lars Ellenberg <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions