public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Yu Kuai <yukuai1@huaweicloud.com>,
	"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	"yukuai (C)" <yukuai3@huawei.com>
Subject: Re: [PATCH] block: blk-rq-qos: guard rq-qos helpers by static key
Date: Thu, 17 Apr 2025 06:33:08 -0600	[thread overview]
Message-ID: <89994086-e750-4dd8-9931-f2777890ab97@kernel.dk> (raw)
In-Reply-To: <207f1ba2-125c-66b1-a5e5-d336f3705ad9@huaweicloud.com>

On 4/17/25 5:08 AM, Yu Kuai wrote:
> 在 2025/04/15 22:52, Jens Axboe 写道:
>> Even if blk-rq-qos isn't used or configured, dipping into the queue to
>> fetch ->rq_qos is a noticeable slowdown and visible in profiles. Add an
>> unlikely static key around blk-rq-qos, to avoid fetching this cacheline
>> if blk-iolatency or blk-wbt isn't configured or used.
>>
>> Signed-off-by: Jens Axboe <axboe@kernel.dk>
>>
>> ---
>>
> LGTM
> 
> Reviewed-by: Yu Kuai <yukuai3@huawei.com>
> 
> BTW, do we want the same thing for q->td?

We may want to do that - I haven't seen that in the hot path yet,
but I also think I may have it configured out...

-- 
Jens Axboe


      reply	other threads:[~2025-04-17 12:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-15 14:52 [PATCH] block: blk-rq-qos: guard rq-qos helpers by static key Jens Axboe
2025-04-15 15:37 ` Chaitanya Kulkarni
2025-04-17 11:08 ` Yu Kuai
2025-04-17 12:33   ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=89994086-e750-4dd8-9931-f2777890ab97@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    --cc=yukuai1@huaweicloud.com \
    --cc=yukuai3@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox