aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorMike Snitzer <[email protected]>2022-06-10 19:07:48 +0000
committerMike Snitzer <[email protected]>2022-06-10 19:23:54 +0000
commitdddf30564054796696bcd4c462b232a5beacf72c (patch)
tree28e1f26e4971e5f2df79d3f8f88928286f568ed3 /scripts/clang-tools/gen_compile_commands.py
parentblock: remove bioset_init_from_src (diff)
downloadkernel-dddf30564054796696bcd4c462b232a5beacf72c.tar.gz
kernel-dddf30564054796696bcd4c462b232a5beacf72c.zip
dm: fix zoned locking imbalance due to needless check in clone_endio
After the commit ca522482e3ea ("dm: pass NULL bdev to bio_alloc_clone"), clone_endio() only calls dm_zone_endio() when DM targets remap the clone bio's bdev to something other than the md->disk->part0 default. However, if a DM target (e.g. dm-crypt) stacked ontop of a dm-zoned does not remap the clone bio using bio_set_dev() then dm_zone_endio() is not called at completion of the bios and zone locks are not properly unlocked. This triggers a hang, in dm_zone_map_bio(), when blktests block/004 is run for dm-crypt on zoned block devices. To avoid the hang, simply remove the clone_endio() check that verifies the target remapped the clone bio to a device other than the default. Fixes: ca522482e3ea ("dm: pass NULL bdev to bio_alloc_clone") Reported-by: Shin'ichiro Kawasaki <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions