From: Christoph Hellwig <hch@lst.de>
To: Ming Lei <ming.lei@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>, Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, Nilay Shroff <nilay@linux.ibm.com>
Subject: Re: [PATCH 1/2] block: move queue quiesce into elevator_change()
Date: Thu, 8 May 2025 07:03:17 +0200 [thread overview]
Message-ID: <20250508050317.GA27049@lst.de> (raw)
In-Reply-To: <aBtuCDKTQK1PReDg@fedora>
On Wed, May 07, 2025 at 10:28:24PM +0800, Ming Lei wrote:
> On Wed, May 07, 2025 at 03:53:49PM +0200, Christoph Hellwig wrote:
> > On Wed, May 07, 2025 at 08:04:02PM +0800, Ming Lei wrote:
> > > blk_mq_freeze_queue() can't be called on quiesced queue, otherwise it may
> > > never return if there is any queued requests.
> > >
> > > Fix it by moving queue quiesce int elevator_change() by adding one flag to
> > > 'struct elv_change_ctx' for controlling this behavior.
> >
> > Why do we even need to quiesce the queue here, and not anywhere else?
>
> Quiesce is for draining the in-progress critical area, which can't be
> covered by queue freeze.
I know. But why do we care about that for removing a scheduler, but
not for changing it?
next prev parent reply other threads:[~2025-05-08 5:03 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-07 12:04 [PATCH 0/2] block: fix hang in elevator_change() and improve elevator_set_none Ming Lei
2025-05-07 12:04 ` [PATCH 1/2] block: move queue quiesce into elevator_change() Ming Lei
2025-05-07 13:53 ` Christoph Hellwig
2025-05-07 14:28 ` Ming Lei
2025-05-07 14:48 ` Ming Lei
2025-05-07 19:05 ` Nilay Shroff
2025-05-08 3:02 ` Ming Lei
2025-05-08 5:03 ` Christoph Hellwig [this message]
2025-05-08 8:03 ` Ming Lei
2025-05-07 12:04 ` [PATCH 2/2] block: avoid unnecessary queue freeze in elevator_set_none() Ming Lei
2025-05-07 13:54 ` Christoph Hellwig
2025-05-08 3:57 ` Ming Lei
2025-05-08 5:04 ` Christoph Hellwig
2025-05-08 8:16 ` Ming Lei
2025-05-07 19:20 ` Nilay Shroff
2025-05-08 4:31 ` [PATCH 0/2] block: fix hang in elevator_change() and improve elevator_set_none Shinichiro Kawasaki
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=20250508050317.GA27049@lst.de \
--to=hch@lst.de \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=nilay@linux.ibm.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