Re: [PATCH] blk-zoned: Fix a lockdep complaint about recursive locking

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

 



On 8/26/25 03:27, Bart Van Assche wrote:
> If preparing a write bio fails then blk_zone_wplug_bio_work() calls
> bio_endio() with zwplug->lock held. If a device mapper driver is stacked
> on top of the zoned block device then this results in nested locking of
> zwplug->lock. The resulting lockdep complaint is a false positive
> because this is nested locking and not recursive locking. Suppress this
> false positive by calling blk_zone_wplug_bio_io_error() without holding
> zwplug->lock. This is safe because no code in
> blk_zone_wplug_bio_io_error() depends on zwplug->lock being held. This
> patch suppresses the following lockdep complaint:

Looks OK.

Reviewed-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