diff options
author | Mikulas Patocka <[email protected]> | 2023-01-22 14:03:56 -0500 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2023-02-02 14:26:09 -0500 |
commit | aa56b9b75996ff4c76a0a4181c2fa0206c3d91cc (patch) | |
tree | 63eac6b4e5ece8ae13da38159df2392f59f41056 /tools/perf/scripts/python/task-analyzer.py | |
parent | 8eb29c4fbf9661e6bd4dd86197a37ffe0ecc9d50 (diff) |
dm flakey: fix logic when corrupting a bio
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]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions