From: Philipp Reisner Date: Wed, 27 Mar 2013 13:08:35 +0000 (+0100) Subject: drbd: abort start of resync early, if it raced with connection breakage X-Git-Tag: omap-for-v3.10/fixes-for-merge-window-part2~10^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a700471bf335965e7603273fd51034415553246a;p=pandora-kernel.git drbd: abort start of resync early, if it raced with connection breakage We've seen a spurious full resync, because a connection breakage raced with drbd_start_resync(, C_SYNC_TARGET), and the resulting state change request intended to start the resync ended up looking like a local invalidate. Fix: Double check the state inside the lock, and don't even request that state change, if we had connection or IO problems. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg Signed-off-by: Jens Axboe --- Reading git-diff-tree failed