diff options
author | Max Gurtovoy <maxg@mellanox.com> | 2020-06-16 12:34:22 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-06-24 18:37:08 +0200 |
commit | 635333e400e2e678258ea45232415cdadadd7818 (patch) | |
tree | fb50fba23e1d8d9339c99df6402ff23d96981ed7 /drivers/nvme | |
parent | 4fea243ebce40e2e4193d7d25eabfd963c46ef8c (diff) |
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>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index e2bacd369a88..46dc530d461c 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; |