Skip to content

Commit 635333e

Browse files
Max GurtovoyChristoph Hellwig
authored andcommitted
nvme-pci: override the value of the controller's numa node
Set the node value according to the PCI device numa node. Signed-off-by: Max Gurtovoy <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 4fea243 commit 635333e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/nvme/host/pci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,6 +1669,8 @@ static int nvme_pci_configure_admin_queue(struct nvme_dev *dev)
16691669
if (result)
16701670
return result;
16711671

1672+
dev->ctrl.numa_node = dev_to_node(dev->dev);
1673+
16721674
nvmeq = &dev->queues[0];
16731675
aqa = nvmeq->q_depth - 1;
16741676
aqa |= aqa << 16;

0 commit comments

Comments
 (0)