aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Gurtovoy <maxg@mellanox.com>2020-06-16 12:34:22 +0300
committerChristoph Hellwig <hch@lst.de>2020-06-24 18:37:08 +0200
commit635333e400e2e678258ea45232415cdadadd7818 (patch)
treefb50fba23e1d8d9339c99df6402ff23d96981ed7
parent4fea243ebce40e2e4193d7d25eabfd963c46ef8c (diff)
downloadlinux-635333e400e2e678258ea45232415cdadadd7818.tar.gz
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 <maxg@mellanox.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/nvme/host/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index e2bacd369a88a0..46dc530d461cf7 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1669,6 +1669,8 @@ static int nvme_pci_configure_admin_queue(struct nvme_dev *dev)
if (result)
return result;
+ dev->ctrl.numa_node = dev_to_node(dev->dev);
+
nvmeq = &dev->queues[0];
aqa = nvmeq->q_depth - 1;
aqa |= aqa << 16;