]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm flakey: error READ bios during the down_interval
authorMike Snitzer <snitzer@redhat.com>
Fri, 29 Jul 2016 17:19:55 +0000 (13:19 -0400)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 22:22:09 +0000 (17:22 -0500)
commit4feda1499ef26d451ccc952822ac2afd80e1887a
tree8ebc677f65b1fde64f812d695356d7becaa31240
parent5caa7033f56873b41871184bb583ed98e14374d7
dm flakey: error READ bios during the down_interval

Orabug: 25308140

[ Upstream commit 99f3c90d0d85708e7401a81ce3314e50bf7f2819 ]

When the corrupt_bio_byte feature was introduced it caused READ bios to
no longer be errored with -EIO during the down_interval.  This had to do
with the complexity of needing to submit READs if the corrupt_bio_byte
feature was used.

Fix it so READ bios are properly errored with -EIO; doing so early in
flakey_map() as long as there isn't a match for the corrupt_bio_byte
feature.

Fixes: a3998799fb4df ("dm flakey: add corrupt_bio_byte feature")
Reported-by: Akira Hayakawa <ruby.wktk@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
(cherry picked from commit 980b6556a8df88e6160da185f72a4bc548e72199)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/md/dm-flakey.c