From: Ming Lei <ming.lei@redhat.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org,
Jeffle Xu <jefflexu@linux.alibaba.com>,
Mike Snitzer <snitzer@redhat.com>,
dm-devel@redhat.com, linux-raid@vger.kernel.org,
Song Liu <song@kernel.org>,
linux-nvme@lists.infradead.org, Ming Lei <ming.lei@redhat.com>
Subject: [RFC PATCH 0/2] block: support to freeze bio based queue
Date: Thu, 15 Apr 2021 18:33:08 +0800 [thread overview]
Message-ID: <20210415103310.1513841-1-ming.lei@redhat.com> (raw)
Hello,
For bio based request queue, the queue usage refcnt is only grabbed
during submission, which isn't consistent with request base queue.
Queue freezing has been used widely, and turns out it is very useful
to quiesce queue activity.
So try to support to freeze bio based queue by ->q_usage_counter.
Any comment are welcome!
Ming Lei (2):
percpu_ref: add percpu_ref_tryget_many_live
block: support to freeze bio based request queue
block/bio.c | 12 ++++++++++--
block/blk-core.c | 23 +++++++++++++++++------
drivers/nvme/host/core.c | 16 ++++++++++++++++
drivers/nvme/host/multipath.c | 6 ++++++
include/linux/blk-mq.h | 2 ++
include/linux/blk_types.h | 1 +
include/linux/blkdev.h | 7 ++++++-
include/linux/percpu-refcount.h | 30 ++++++++++++++++++++++++++----
8 files changed, 84 insertions(+), 13 deletions(-)
--
2.29.2
_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
next reply other threads:[~2021-04-15 10:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-15 10:33 Ming Lei [this message]
2021-04-15 10:33 ` [RFC PATCH 1/2] percpu_ref: add percpu_ref_tryget_many_live Ming Lei
2021-04-15 19:50 ` Bart Van Assche
2021-04-15 10:33 ` [RFC PATCH 2/2] block: support to freeze bio based request queue Ming Lei
2021-04-15 13:56 ` Ming Lei
2021-04-15 20:16 ` [dm-devel] " Bart Van Assche
2021-04-16 1:28 ` Ming Lei
2021-04-19 12:05 ` JeffleXu
2021-04-19 13:50 ` Ming Lei
2021-04-20 7:21 ` JeffleXu
2021-04-20 7:58 ` Ming Lei
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=20210415103310.1513841-1-ming.lei@redhat.com \
--to=ming.lei@redhat.com \
--cc=axboe@kernel.dk \
--cc=dm-devel@redhat.com \
--cc=jefflexu@linux.alibaba.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=linux-raid@vger.kernel.org \
--cc=snitzer@redhat.com \
--cc=song@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;
as well as URLs for NNTP newsgroup(s).