[PATCH] blk-mq: remove double set queue_num

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

set it again.


Signed-off-by: weiping <zhangweiping@xxxxxxxxxxxxxxx>

---

 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



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux