projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fea243
)
nvme-pci: override the value of the controller's numa node
author
Max Gurtovoy
<maxg@mellanox.com>
Tue, 16 Jun 2020 09:34:22 +0000
(12:34 +0300)
committer
Christoph Hellwig
<hch@lst.de>
Wed, 24 Jun 2020 16:37:08 +0000
(18:37 +0200)
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>
drivers/nvme/host/pci.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/host/pci.c
b/drivers/nvme/host/pci.c
index e2bacd369a88a00e35ff8bdb353258e853a1f6cb..46dc530d461cf7930c963df49bca2038cbbcb284 100644
(file)
--- 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;