blk-mq: remove double set queue_num
PATCH 1/1 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 <[email protected]>
--- block/blk-mq.c | 1 - 1 file changed, 1 deletion(-)
block/blk-mq.c +0 -1
@@ -1900,7 +1900,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);
Signature · 1 line
1.8.3.1
Jens Axboe
maintainerQuoted 4 lines · weiping
hwctx's
queue_numhas been set prior callblk_mq_init_hctx, so no need set it again.Signed-off-by weiping <[email protected]>
I still prefer full names, but it's trivial enough, I've queued it up for 4.13. Thanks.
Signature · 1 line
Jens Axboe