summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-delay.c
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2009-01-06 04:04:57 +0100
committerAlasdair G Kergon <agk@redhat.com>2009-01-06 04:04:57 +0100
commitd460c65a6a9ec9e0d284864ec3a9a2d1b73f0e43 (patch)
tree84131d888f5ec610cc343ca7188a5d4044043c2b /drivers/md/dm-delay.c
parentdm log: fix dm_io_client leak on error paths (diff)
downloadlinux-d460c65a6a9ec9e0d284864ec3a9a2d1b73f0e43.tar.xz
linux-d460c65a6a9ec9e0d284864ec3a9a2d1b73f0e43.zip
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>
Diffstat (limited to 'drivers/md/dm-delay.c')
0 files changed, 0 insertions, 0 deletions