Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dm flakey: fix logic when corrupting a bio
commit aa56b9b upstream. If "corrupt_bio_byte" is set to corrupt reads and corrupt_bio_flags is used, dm-flakey would erroneously return all writes as errors. Likewise, if "corrupt_bio_byte" is set to corrupt writes, dm-flakey would return errors for all reads. Fix the logic so that if fc->corrupt_bio_byte is non-zero, dm-flakey will not abort reads on writes with an error. Cc: [email protected] Signed-off-by: Mikulas Patocka <[email protected]> Reviewed-by: Sweet Tea Dorminy <[email protected]> Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information