diff options
author | weiping <zhangweiping@didichuxing.com> | 2017-06-22 23:06:56 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-22 09:18:25 -0600 |
commit | a9590fe148c03cb4157b56255357419cb4e14124 (patch) | |
tree | 2c30c1318bf7b8f89692f516510e0c408e6b7a5e /block | |
parent | 852ec80983d682dc08a0573d37eeaa9814c4f6b1 (diff) | |
download | linux-a9590fe148c03cb4157b56255357419cb4e14124.tar.gz linux-a9590fe148c03cb4157b56255357419cb4e14124.tar.bz2 linux-a9590fe148c03cb4157b56255357419cb4e14124.zip |
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')
-rw-r--r-- | block/blk-mq.c | 1 |
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); |