Re: [PATCH v2] block: Prevent potential deadlock in blk_revalidate_disk_zones()

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

 



On Tue, 26 Nov 2024 19:47:05 +0900, Damien Le Moal wrote:
> The function blk_revalidate_disk_zones() calls the function
> disk_update_zone_resources() after freezing the device queue. In turn,
> disk_update_zone_resources() calls queue_limits_start_update() which
> takes a queue limits mutex lock, resulting in the ordering:
> q->q_usage_counter check -> q->limits_lock. However, the usual ordering
> is to always take a queue limit lock before freezing the queue to commit
> the limits updates, e.g., the code pattern:
> 
> [...]

Applied, thanks!

[1/1] block: Prevent potential deadlock in blk_revalidate_disk_zones()
      commit: 0b83c86b444ab467134b0e618f45ad2216a4973c

Best regards,
-- 
Jens Axboe







[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