Jonathan Brassow d460c65a6a 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 <mbroz@redhat.com>
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2009-01-06 03:04:57 +00:00
..
2007-10-20 02:01:11 +01:00
2008-10-21 17:44:59 +01:00
2008-10-21 17:44:59 +01:00
2008-11-13 23:39:06 +00:00
2009-01-06 03:04:57 +00:00
2009-01-06 03:04:54 +00:00
2008-11-13 23:38:56 +00:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:26 +01:00
2008-10-21 17:44:59 +01:00
2009-01-06 03:04:53 +00:00
2008-10-21 17:44:57 +01:00
2008-02-06 10:41:18 -08:00
2007-10-29 07:41:32 -07:00
2007-10-29 07:41:32 -07:00
2007-10-29 07:41:32 -07:00
2007-10-29 07:41:32 -07:00
2008-11-06 17:28:20 +11:00