File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -556,7 +556,7 @@ static int nvme_loop_create_io_queues(struct nvme_loop_ctrl *ctrl)
556
556
557
557
memset (& ctrl -> tag_set , 0 , sizeof (ctrl -> tag_set ));
558
558
ctrl -> tag_set .ops = & nvme_loop_mq_ops ;
559
- ctrl -> tag_set .queue_depth = ctrl -> ctrl .sqsize ;
559
+ ctrl -> tag_set .queue_depth = ctrl -> ctrl .opts -> queue_size ;
560
560
ctrl -> tag_set .reserved_tags = 1 ; /* fabric connect */
561
561
ctrl -> tag_set .numa_node = NUMA_NO_NODE ;
562
562
ctrl -> tag_set .flags = BLK_MQ_F_SHOULD_MERGE ;
@@ -620,7 +620,7 @@ static struct nvme_ctrl *nvme_loop_create_ctrl(struct device *dev,
620
620
621
621
ret = - ENOMEM ;
622
622
623
- ctrl -> ctrl .sqsize = opts -> queue_size ;
623
+ ctrl -> ctrl .sqsize = opts -> queue_size - 1 ;
624
624
ctrl -> ctrl .kato = opts -> kato ;
625
625
626
626
ctrl -> queues = kcalloc (opts -> nr_io_queues + 1 , sizeof (* ctrl -> queues ),
You can’t perform that action at this time.
0 commit comments