Linux block layer
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: 전민식 <hmi.jeon@samsung.com>
Cc: Christoph Hellwig <hch@infradead.org>,
	"axboe@kernel.dk" <axboe@kernel.dk>,
	"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>
Subject: Re: RE(2): [PATCH] blk-mq: scope the no-sleep requirement in blk_mq_alloc_request_hctx()
Date: Tue, 24 Nov 2026 22:58:59 -0800	[thread overview]
Message-ID: <awaHMx0k45JIgWDp@infradead.org> (raw)
In-Reply-To: <20261125065332epcms2p4e172702703233beeab6a683dd69676f2@epcms2p4>

On Wed, Nov 25, 2026 at 03:53:32PM +0900, 전민식 wrote:
> On Wed, 25 Nov 2026 at 13:55 +0900, Christoph Hellwig wrote:
> > This commit messages reiterates in annoying detail what the change does,
> > which is mostly obvious from the code.  It entirely fails to explain
> > why you want to make this change.
> 
> Fair. The motivation I left out: BLK_MQ_REQ_NOWAIT is mandatory in
> blk_mq_alloc_request_hctx() only to keep blk_mq_get_tag() from re-picking
> data->hctx after io_schedule(). But the same flags value is passed on to
> blk_queue_enter(), so a caller also takes -EAGAIN for a transient freeze
> that has no bearing on hctx selection. There is no way to ask for the
> hctx guarantee without also opting out of waiting.

Please put this into the commit log, and given that it is not obvious
maybe also into a code comment.  Please also describe if this improves
a workload you care about or if you just found it by code inspection.

  reply	other threads:[~2026-11-25  6:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20261124002518epcms2p847d3246dc989469f326f7a2b47f2f950@epcms2p8>
2026-11-24  0:25 ` [PATCH] blk-mq: scope the no-sleep requirement in blk_mq_alloc_request_hctx() 전민식
2026-11-25  4:55   ` Christoph Hellwig
2026-11-25  6:53     ` RE(2): " 전민식
2026-11-25  6:58       ` Christoph Hellwig [this message]
2026-11-25  7:13         ` 전민식

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=awaHMx0k45JIgWDp@infradead.org \
    --to=hch@infradead.org \
    --cc=axboe@kernel.dk \
    --cc=hmi.jeon@samsung.com \
    --cc=linux-block@vger.kernel.org \
    /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