From: Max Gurtovoy Date: Tue, 16 Jun 2020 09:34:22 +0000 (+0300) Subject: nvme-pci: override the value of the controller's numa node X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=635333e400e2e678258ea45232415cdadadd7818;p=linux.git 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 Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index e2bacd369a88a..46dc530d461cf 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;