Re: [PATCH] block: don't use submit_bio_noacct_nocheck in blk_zone_wplug_bio_work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2025/06/11 13:44, Christoph Hellwig wrote:
> Bios queued up in the zone write plug have already gone through all all
> preparation in the submit_bio path, including the freeze protection.
> 
> Submitting them through submit_bio_noacct_nocheck duplicates the work
> and can can cause deadlocks when freezing a queue with pending bio
> write plugs.
> 
> Go straight to ->submit_bio or blk_mq_submit_bio to bypass the
> superfluous extra freeze protection and checks.
> 
> Fixes: 9b1ce7f0c6f8 ("block: Implement zone append emulation")
> Reported-by: Bart Van Assche <bvanassche@xxxxxxx>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Reviewed-by: Damien Le Moal <dlemoal@xxxxxxxxxx>
Tested-by: Damien Le Moal <dlemoal@xxxxxxxxxx>


-- 
Damien Le Moal
Western Digital Research




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux