From: Ming Lei <ming.lei@redhat.com>
To: Jens Axboe <axboe@fb.com>,
linux-block@vger.kernel.org,
Christoph Hellwig <hch@infradead.org>
Cc: Bart Van Assche <bart.vanassche@sandisk.com>,
Ming Lei <ming.lei@redhat.com>
Subject: [PATCH 0/6] blk-mq: cleanup start/stop queue
Date: Sat, 15 Jul 2017 07:15:55 +0800 [thread overview]
Message-ID: <20170714231601.14444-1-ming.lei@redhat.com> (raw)
Hi,
We have replaced most of start/stop queue via quiesce/unquiesce.
And only the usage in case of handling BLK_STS_RESOURCE is kept.
This patch moves this handling into blk-mq for xen-blkfront and
virtio-blk, then we can avoid to let drivers touch the 'stopped'
state, because allowing driver to do that has caused lots of trouble
for us.
Thanks,
Ming
Ming Lei (6):
xen-blkfront: quiesce/unquiesce queue instead of start/stop queues
SCSI: use blk_mq_run_hw_queues() in scsi_kick_queue()
block: don't call blk_mq_delay_run_hw_queue() in case of
BLK_STS_RESOURCE
blk-mq: introduce auto restart
block: use BLK_MQ_F_AUTO_RESTART on virtio-blk and xen-blkfront
blk-mq: unexport APIs for start/stop queues
block/blk-mq.c | 124 +++++++++++++++----------------------------
block/blk-mq.h | 1 +
drivers/block/virtio_blk.c | 8 +--
drivers/block/xen-blkfront.c | 31 +++--------
drivers/md/dm-rq.c | 1 -
drivers/nvme/host/fc.c | 3 --
drivers/scsi/scsi_lib.c | 6 +--
include/linux/blk-mq.h | 9 +---
8 files changed, 54 insertions(+), 129 deletions(-)
--
2.9.4
next reply other threads:[~2017-07-14 23:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-14 23:15 Ming Lei [this message]
2017-07-14 23:15 ` [PATCH 1/6] xen-blkfront: quiesce/unquiesce queue instead of start/stop queues Ming Lei
2017-07-17 11:20 ` Roger Pau Monné
2017-07-17 15:06 ` Ming Lei
2017-07-17 16:02 ` Roger Pau Monné
2017-07-18 0:53 ` Ming Lei
2017-07-18 7:40 ` Roger Pau Monné
2017-07-18 8:59 ` Ming Lei
2017-07-14 23:15 ` [PATCH 2/6] SCSI: use blk_mq_run_hw_queues() in scsi_kick_queue() Ming Lei
2017-07-14 23:15 ` [PATCH 3/6] block: don't call blk_mq_delay_run_hw_queue() in case of BLK_STS_RESOURCE Ming Lei
2017-07-14 23:15 ` [PATCH 4/6] blk-mq: introduce auto restart Ming Lei
2017-07-14 23:16 ` [PATCH 5/6] block: use BLK_MQ_F_AUTO_RESTART on virtio-blk and xen-blkfront Ming Lei
2017-07-14 23:16 ` [PATCH 6/6] blk-mq: unexport APIs for start/stop queues 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=20170714231601.14444-1-ming.lei@redhat.com \
--to=ming.lei@redhat.com \
--cc=axboe@fb.com \
--cc=bart.vanassche@sandisk.com \
--cc=hch@infradead.org \
--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;
as well as URLs for NNTP newsgroup(s).