From: Jonathan Brassow Date: Tue, 6 Jan 2009 03:04:57 +0000 (+0000) Subject: dm raid1: fix error count X-Git-Tag: v2.6.29-rc1~492^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d460c65a6a9ec9e0d284864ec3a9a2d1b73f0e43;p=pandora-kernel.git dm raid1: fix error count Always increase the error count when I/O on a leg of a mirror fails. The error count is used to decide whether to select an alternative mirror leg. If the target doesn't use the "handle_errors" feature, the error count is not updated and the bio can get requeued forever by the read callback. Fix it by increasing error_count before the handle_errors feature checking. Cc: stable@kernel.org Signed-off-by: Milan Broz Signed-off-by: Jonathan Brassow Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed