From: Bart Van Assche <Bart.VanAssche@sandisk.com>
To: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
"axboe@fb.com" <axboe@fb.com>,
"ming.lei@redhat.com" <ming.lei@redhat.com>
Cc: "hch@infradead.org" <hch@infradead.org>,
"osandov@fb.com" <osandov@fb.com>
Subject: Re: [PATCH ] block: don't call blk_mq_quiesce_queue() during switching mq sched
Date: Fri, 28 Apr 2017 15:59:20 +0000 [thread overview]
Message-ID: <1493395159.2767.5.camel@sandisk.com> (raw)
In-Reply-To: <88cb69a2-34a7-6315-cc18-b254a46914dc@fb.com>
On Fri, 2017-04-28 at 07:42 -0600, Jens Axboe wrote:
> On 04/28/2017 01:32 AM, Ming Lei wrote:
> > We have freezed queue already, not necessary to call
> > blk_mq_quiesce_queue() any more, so remove it.
>=20
> Are you sure? It ensures that we also aren't in the middle of
> blk_mq_make_request(), we need a stable view of the sched
> status throughout that.
Hello Jens,
My understanding is that blk_mq_freeze_queue() provides stronger guarantees
than=A0blk_mq_quiesce_queue(). The former waits until all pending requests =
have
finished while the latter only waits until pending .queue_rq() calls have
finished. blk_mq_freeze_queue() also causes new blk_get_request() calls to
wait until blk_mq_unfreeze_queue() is called while=A0blk_get_request() can
still succeed after blk_mq_quiesce_queue() returned and before
blk_mq_start_stopped_hw_queues() is called.
Regarding blk_mq_make_request(): I think that the blk_queue_enter() call in
generic_make_request() prevents that blk_mq_make_request() gets called afte=
r
a queue has been frozen.
Bart.=
next prev parent reply other threads:[~2017-04-28 15:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-28 7:32 [PATCH ] block: don't call blk_mq_quiesce_queue() during switching mq sched Ming Lei
2017-04-28 13:42 ` Jens Axboe
2017-04-28 15:38 ` Ming Lei
2017-04-28 15:59 ` Bart Van Assche [this message]
2017-04-28 23:49 ` Ming Lei
2017-05-02 17:31 ` Jens Axboe
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=1493395159.2767.5.camel@sandisk.com \
--to=bart.vanassche@sandisk.com \
--cc=axboe@fb.com \
--cc=hch@infradead.org \
--cc=linux-block@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=osandov@fb.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.