• Mike Snitzer's avatar
    dm flakey: error READ bios during the down_interval · 99f3c90d
    Mike Snitzer authored
    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: a3998799 ("dm flakey: add corrupt_bio_byte feature")
    Reported-by: default avatarAkira Hayakawa <ruby.wktk@gmail.com>
    Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
    Cc: stable@vger.kernel.org
    99f3c90d
dm-flakey.c 9.58 KB