dm: record old_sector in dm_target_io before calling map function
authorMike Snitzer <snitzer@redhat.com>
Fri, 18 Feb 2022 04:40:23 +0000 (23:40 -0500)
committerMike Snitzer <snitzer@redhat.com>
Mon, 21 Feb 2022 20:36:29 +0000 (15:36 -0500)
commit743598f049df473869138d599d6ad3b7c740a73f
treef6d3f7fdf2d3f6462290c29ec72375897707db41
parent77c11720a48cbbd5ee1071e8540d0aa0f26d98f4
dm: record old_sector in dm_target_io before calling map function

Prep for being able to defer trace_block_bio_remap() until when the
bio is remapped and submitted by the DM target.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-core.h
drivers/md/dm.c