Thread (2 messages) 2 messages, 2 authors, 2017-06-22

[PATCH] blk-mq: remove double set queue_num

STALE3388d

From: weiping <hidden>
Date: 2017-06-22 15:06:56
Subsystem: block layer, the rest · Maintainers: Jens Axboe, Linus Torvalds

hwctx's queue_num has been set prior call blk_mq_init_hctx, so no need
set it again.

Signed-off-by: weiping <redacted>
---
 block/blk-mq.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index bb66c96..adcb79c 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -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);
-- 
1.8.3.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help