diff options
author | Mike Snitzer <snitzer@redhat.com> | 2016-07-29 13:19:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-20 18:09:27 +0200 |
commit | c6ec712c44c9f12cded15bff56ab045e844d503b (patch) | |
tree | 9d21420e6f95de33bc47b32786625b726a37b4f5 /kernel | |
parent | ef60c9aa980b59a61c5464cc38fdfaecdec61e47 (diff) | |
download | lwn-c6ec712c44c9f12cded15bff56ab045e844d503b.tar.gz lwn-c6ec712c44c9f12cded15bff56ab045e844d503b.zip |
dm flakey: error READ bios during the down_interval
commit 99f3c90d0d85708e7401a81ce3314e50bf7f2819 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions