Skip to content

Commit 610c823

Browse files
Max GurtovoyChristoph Hellwig
authored andcommitted
nvme-tcp: 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 d4ec47f commit 610c823

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/nvme/host/tcp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ static struct blk_mq_tag_set *nvme_tcp_alloc_tagset(struct nvme_ctrl *nctrl,
15321532
set->ops = &nvme_tcp_admin_mq_ops;
15331533
set->queue_depth = NVME_AQ_MQ_TAG_DEPTH;
15341534
set->reserved_tags = 2; /* connect + keep-alive */
1535-
set->numa_node = NUMA_NO_NODE;
1535+
set->numa_node = nctrl->numa_node;
15361536
set->flags = BLK_MQ_F_BLOCKING;
15371537
set->cmd_size = sizeof(struct nvme_tcp_request);
15381538
set->driver_data = ctrl;
@@ -1544,7 +1544,7 @@ static struct blk_mq_tag_set *nvme_tcp_alloc_tagset(struct nvme_ctrl *nctrl,
15441544
set->ops = &nvme_tcp_mq_ops;
15451545
set->queue_depth = nctrl->sqsize + 1;
15461546
set->reserved_tags = 1; /* fabric connect */
1547-
set->numa_node = NUMA_NO_NODE;
1547+
set->numa_node = nctrl->numa_node;
15481548
set->flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_BLOCKING;
15491549
set->cmd_size = sizeof(struct nvme_tcp_request);
15501550
set->driver_data = ctrl;

0 commit comments

Comments
 (0)