]> git.baikalelectronics.ru Git - kernel.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)
committerMike Snitzer <snitzer@redhat.com>
Tue, 2 Aug 2016 20:08:59 +0000 (16:08 -0400)
commitfb7bd1aac857a1f1c8df8b9db8e9b29465c1a073
tree97e77eb78fa2f23e30a3279caed0c08af77bdf90
parent42e6c09c4704b5e44f92d909ad68a65adce42453
dm flakey: error READ bios during the down_interval

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: 637584e29433b ("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
drivers/md/dm-flakey.c