From: Hannes Reinecke <hare@suse.de>
To: Ming Lei <ming.lei@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>, Jens Axboe <axboe@kernel.dk>,
linux-nvme@lists.infradead.org, linux-block@vger.kernel.org,
Hannes Reinecke <hare@suse.de>, Hannes Reinecke <hare@suse.com>
Subject: [PATCH 3/5] blk-mq: remove 'nr_queue' argument in blk_mq_exit_hw_queues()
Date: Tue, 23 Apr 2019 14:29:49 +0200 [thread overview]
Message-ID: <20190423122951.134531-4-hare@suse.de> (raw)
In-Reply-To: <20190423122951.134531-1-hare@suse.de>
Unused.
Signed-off-by: Hannes Reinecke <hare@suse.com>
---
block/blk-mq.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index d16672bfa97d..3da453b11deb 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -2267,14 +2267,12 @@ static void blk_mq_exit_hctx(struct request_queue *q,
}
static void blk_mq_exit_hw_queues(struct request_queue *q,
- struct blk_mq_tag_set *set, int nr_queue)
+ struct blk_mq_tag_set *set)
{
struct blk_mq_hw_ctx *hctx;
unsigned int i;
queue_for_each_hw_ctx(q, hctx, i) {
- if (i == nr_queue)
- break;
blk_mq_debugfs_unregister_hctx(hctx);
blk_mq_exit_hctx(q, set, hctx, i);
}
@@ -2930,7 +2928,7 @@ void blk_mq_exit_queue(struct request_queue *q)
struct blk_mq_tag_set *set = q->tag_set;
blk_mq_del_queue_tag_set(q);
- blk_mq_exit_hw_queues(q, set, set->nr_hw_queues);
+ blk_mq_exit_hw_queues(q, set);
}
static int __blk_mq_alloc_rq_maps(struct blk_mq_tag_set *set)
--
2.16.4
next prev parent reply other threads:[~2019-04-23 12:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-23 12:29 [PATCH 0/5] blk-mq: fixes for Ming Leis V6 patchset Hannes Reinecke
2019-04-23 12:29 ` [PATCH 1/5] blk-mq: rename 'dead_hctx_XX' to 'unused_hctx_XX' Hannes Reinecke
2019-04-23 12:29 ` [PATCH 2/5] blk-mq: drop 'hctx_idx' argument from blk_mq_alloc_hctx() Hannes Reinecke
2019-04-23 12:29 ` Hannes Reinecke [this message]
2019-04-23 12:29 ` [PATCH 4/5] blk-mq: Set hctx pointer to NULL in blk_mq_exit_hw_queues() Hannes Reinecke
2019-04-23 12:29 ` [PATCH 5/5] blk-mq: free q->queue_hw_ctx in blk_mq_exit_queue() Hannes Reinecke
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=20190423122951.134531-4-hare@suse.de \
--to=hare@suse.de \
--cc=axboe@kernel.dk \
--cc=hare@suse.com \
--cc=hch@lst.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=ming.lei@redhat.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;
as well as URLs for NNTP newsgroup(s).