projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
852ec80
)
blk-mq: remove double set queue_num
author
weiping
<zhangweiping@didichuxing.com>
Thu, 22 Jun 2017 15:06:56 +0000
(23:06 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 22 Jun 2017 15:18:25 +0000
(09:18 -0600)
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>
block/blk-mq.c
patch
|
blob
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index 2caac30e128a2a989d717a6e668dc3402ec25de4..c56b64ae17410a0d4cb92f306d6f2eac70dc823a 100644
(file)
--- 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);