From: Philipp Reisner Date: Wed, 27 Mar 2013 13:08:37 +0000 (+0100) Subject: drbd: fix effective error returned when refusing an invalidate X-Git-Tag: omap-for-v3.10/fixes-for-merge-window-part2~10^2~27 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c4f13d991e69cb715ddc2b6a9bbecead7b02c9e;p=pandora-kernel.git drbd: fix effective error returned when refusing an invalidate Since commit drbd: Disallow the peer_disk_state to be D_OUTDATED while connected trying to invalidate a disconnected Primary returned an error code that did not really match the situation: "Refusing to be Outdated while Connected" Insert two more specific conditions into is_valid_state(), changing that to "Need access to UpToDate data", respectively "Need a connection to start verify or resync". Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg Signed-off-by: Jens Axboe --- Reading git-diff-tree failed