From: Lars Ellenberg Date: Mon, 10 Nov 2014 16:21:12 +0000 (+0100) Subject: drbd: fix resync throttling initialization X-Git-Tag: omap-for-v3.19/fixes-rc1~94^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff8bd88b73fad369a12465dfa52ad5c0bf088ced;p=pandora-kernel.git 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 Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg Signed-off-by: Jens Axboe --- Reading git-diff-tree failed