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 2/5] blk-mq: drop 'hctx_idx' argument from blk_mq_alloc_hctx()
Date: Tue, 23 Apr 2019 14:29:48 +0200 [thread overview]
Message-ID: <20190423122951.134531-3-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 | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 6f016d0cc69b..d16672bfa97d 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -2324,8 +2324,7 @@ static int blk_mq_init_hctx(struct request_queue *q,
static struct blk_mq_hw_ctx *
blk_mq_alloc_hctx(struct request_queue *q,
- struct blk_mq_tag_set *set,
- unsigned hctx_idx, int node)
+ struct blk_mq_tag_set *set, int node)
{
struct blk_mq_hw_ctx *hctx;
@@ -2753,7 +2752,7 @@ static struct blk_mq_hw_ctx *blk_mq_alloc_and_init_hctx(
spin_unlock(&q->unused_hctx_lock);
if (!hctx)
- hctx = blk_mq_alloc_hctx(q, set, hctx_idx, node);
+ hctx = blk_mq_alloc_hctx(q, set, node);
if (!hctx)
goto fail;
--
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 ` Hannes Reinecke [this message]
2019-04-23 12:29 ` [PATCH 3/5] blk-mq: remove 'nr_queue' argument in blk_mq_exit_hw_queues() Hannes Reinecke
2019-04-23 12:29 ` [PATCH 4/5] blk-mq: Set hctx pointer to NULL " 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-3-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).