Re: [PATCH] block: protect hctx attributes/params using q->elevator_lock

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

 



On Thu, 06 Mar 2025 15:09:53 +0530, Nilay Shroff wrote:
> Currently, hctx attributes (nr_tags, nr_reserved_tags, and cpu_list)
> are protected using `q->sysfs_lock`. However, these attributes can be
> updated in multiple scenarios:
>   - During the driver's probe method.
>   - When updating nr_hw_queues.
>   - When writing to the sysfs attribute nr_requests,
>     which can modify nr_tags.
> The nr_requests attribute is already protected using q->elevator_lock,
> but none of the update paths actually use q->sysfs_lock to protect hctx
> attributes. So to ensure proper synchronization, replace q->sysfs_lock
> with q->elevator_lock when reading hctx attributes through sysfs.
> 
> [...]

Applied, thanks!

[1/1] block: protect hctx attributes/params using q->elevator_lock
      commit: 5abba4cebec0a591ca7e7f55701e42cd5dc059af

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