From: Lars Ellenberg Date: Fri, 20 Dec 2013 10:22:13 +0000 (+0100) Subject: drbd: improve throttling decisions of background resynchronisation X-Git-Tag: omap-for-v3.17/fixes-against-rc2~74^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad3fee790088d36ad862e31535b5b99c25adeef4;p=pandora-kernel.git drbd: improve throttling decisions of background resynchronisation Background resynchronisation does some "side-stepping", or throttles itself, if it detects application IO activity, and the current resync rate estimate is above the configured "cmin-rate". What was not detected: if there is no application IO, because it blocks on activity log transactions. Introduce a new atomic_t ap_actlog_cnt, tracking such blocked requests, and count non-zero as application IO activity. This counter is exposed at proc_details level 2 and above. Also make sure to release the currently locked resync extent if we side-step due to such voluntary throttling. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed