Re: [PATCH -next v3] block: remove init_mutex and open-code blk_iolatency_try_init

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

 



On Fri, Aug 11, 2023 at 04:53:44PM +0800, Yu Kuai <yukuai1@xxxxxxxxxxxxxxx> wrote:
> Yes, it'm implemented in the upper layer that rq_qos_add() and
> blkcg_activate_policy() should be atmoic, and currently there is no
> comments for that.

The check (iolat_rq_qos()) and use (activating the policy) should be the
atomic pair.

> Perhaps it's better to add some comments like following in rq_qos_add()
> instead?

Honestly, I find the current variant (v3) good as it is -- closest to
the pair of the operations.

(But it's merely a comment so ¯\_(ツ)_/¯)

Michal

Attachment: signature.asc
Description: PGP signature


[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