aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2020-02-28 18:11:53 -0500
committerMike Snitzer <snitzer@redhat.com>2020-03-03 10:02:47 -0500
commit248aa2645aa7fc9175d1107c2593cc90d4af5a4e (patch)
tree6611c9ba95e7ca32d473ece4dc1bdf16db2d9bde /drivers/scsi
parentdm bio record: save/restore bi_end_io and bi_integrity (diff)
downloadlinux-dev-248aa2645aa7fc9175d1107c2593cc90d4af5a4e.tar.xz
linux-dev-248aa2645aa7fc9175d1107c2593cc90d4af5a4e.zip
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 <dg@emlix.com> Suggested-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/scsi')
0 files changed, 0 insertions, 0 deletions