From: weiping Date: Thu, 22 Jun 2017 15:06:56 +0000 (+0800) Subject: blk-mq: remove double set queue_num X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9590fe148c03cb4157b56255357419cb4e14124;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jens Axboe --- 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);