Skip to content

Commit 1b4ad7a

Browse files
Max GurtovoyChristoph Hellwig
authored andcommitted
nvme-loop: initialize tagset numa value to the value of the ctrl
Both admin's and drive's tagsets should be set according the numa node of the controller. Signed-off-by: Max Gurtovoy <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 610c823 commit 1b4ad7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/nvme/target/loop.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static int nvme_loop_configure_admin_queue(struct nvme_loop_ctrl *ctrl)
340340
ctrl->admin_tag_set.ops = &nvme_loop_admin_mq_ops;
341341
ctrl->admin_tag_set.queue_depth = NVME_AQ_MQ_TAG_DEPTH;
342342
ctrl->admin_tag_set.reserved_tags = 2; /* connect + keep-alive */
343-
ctrl->admin_tag_set.numa_node = NUMA_NO_NODE;
343+
ctrl->admin_tag_set.numa_node = ctrl->ctrl.numa_node;
344344
ctrl->admin_tag_set.cmd_size = sizeof(struct nvme_loop_iod) +
345345
NVME_INLINE_SG_CNT * sizeof(struct scatterlist);
346346
ctrl->admin_tag_set.driver_data = ctrl;
@@ -512,7 +512,7 @@ static int nvme_loop_create_io_queues(struct nvme_loop_ctrl *ctrl)
512512
ctrl->tag_set.ops = &nvme_loop_mq_ops;
513513
ctrl->tag_set.queue_depth = ctrl->ctrl.opts->queue_size;
514514
ctrl->tag_set.reserved_tags = 1; /* fabric connect */
515-
ctrl->tag_set.numa_node = NUMA_NO_NODE;
515+
ctrl->tag_set.numa_node = ctrl->ctrl.numa_node;
516516
ctrl->tag_set.flags = BLK_MQ_F_SHOULD_MERGE;
517517
ctrl->tag_set.cmd_size = sizeof(struct nvme_loop_iod) +
518518
NVME_INLINE_SG_CNT * sizeof(struct scatterlist);

0 commit comments

Comments
 (0)