diff options
author | Mike Snitzer <[email protected]> | 2020-02-28 18:11:53 -0500 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2020-03-03 10:02:47 -0500 |
commit | 248aa2645aa7fc9175d1107c2593cc90d4af5a4e (patch) | |
tree | 6611c9ba95e7ca32d473ece4dc1bdf16db2d9bde /tools/perf/util/trace-event-scripting.c | |
parent | 1b17159e52bb31f982f82a6278acd7fab1d3f67b (diff) |
dm integrity: use dm_bio_record and dm_bio_restore
In cases where dec_in_flight() has to requeue the integrity_bio_wait
work to transfer the rest of the data, the bio's __bi_remaining might
already have been decremented to 0, e.g.: if bio passed to underlying
data device was split via blk_queue_split().
Use dm_bio_{record,restore} rather than effectively open-coding them in
dm-integrity -- these methods now manage __bi_remaining too.
Depends-on: f7f0b057a9c1 ("dm bio record: save/restore bi_end_io and bi_integrity")
Reported-by: Daniel Glöckner <[email protected]>
Suggested-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions