Skip to content

Commit

Permalink
nvme-pci: override the value of the controller's numa node
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Max Gurtovoy authored and Christoph Hellwig committed Jun 24, 2020
1 parent 4fea243 commit 635333e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/nvme/host/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 635333e

Please sign in to comment.