summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorweiping <zhangweiping@didichuxing.com>2017-06-22 23:06:56 +0800
committerJens Axboe <axboe@kernel.dk>2017-06-22 09:18:25 -0600
commita9590fe148c03cb4157b56255357419cb4e14124 (patch)
tree2c30c1318bf7b8f89692f516510e0c408e6b7a5e /block/blk-mq.c
parent852ec80983d682dc08a0573d37eeaa9814c4f6b1 (diff)
downloadlinux-a9590fe148c03cb4157b56255357419cb4e14124.tar.bz2
blk-mq: remove double set queue_num
hwctx's queue_num has been set prior call blk_mq_init_hctx, so no need set it again. Signed-off-by: weiping <zhangweiping@didichuxing.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 2caac30e128a..c56b64ae1741 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1910,7 +1910,6 @@ static int blk_mq_init_hctx(struct request_queue *q,
spin_lock_init(&hctx->lock);
INIT_LIST_HEAD(&hctx->dispatch);
hctx->queue = q;
- hctx->queue_num = hctx_idx;
hctx->flags = set->flags & ~BLK_MQ_F_TAG_SHARED;
cpuhp_state_add_instance_nocalls(CPUHP_BLK_MQ_DEAD, &hctx->cpuhp_dead);