diff options
author | Mike Snitzer <snitzer@kernel.org> | 2022-05-11 09:38:38 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2022-05-11 13:58:52 -0400 |
commit | ca522482e3eafd005b8d4e8b1331c911505a58d5 (patch) | |
tree | 6100fe0c0e96e040418dd62a388d6906219a30d8 /arch/Kconfig | |
parent | d254c3699fddb671bc555f042c96ec033582ae72 (diff) |
dm: pass NULL bdev to bio_alloc_clone
Most DM targets will remap the clone bio passed to their ->map
function using bio_set_bdev(). So this change to pass NULL bdev to
bio_alloc_clone avoids clone-time work that sets up resources for a
bdev association that will not be used in practice (e.g. clone issued
to underlying device will not use DM device's blk-cgroups resources).
But clone->bi_bdev is still initialized following bio_alloc_clone to
preserve DM target expectations that clone->bi_bdev will be set.
Follow-up work is needed to audit DM targets to remove accesses to a
clone->bi_bdev that the target didn't initialize with bio_set_dev().
Depends-on: 7ecc56c62b27 ("block: allow passing a NULL bdev to bio_alloc_clone/bio_init_clone")
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'arch/Kconfig')
0 files changed, 0 insertions, 0 deletions