Skip to content

Commit dad651b

Browse files
prati0100keithbusch
authored andcommitted
nvme-pci: do not set the NUMA node of device if it has none
If a device has no NUMA node information associated with it, the driver puts the device in node first_memory_node (say node 0). Not having a NUMA node and being associated with node 0 are completely different things and it makes little sense to mix the two. Signed-off-by: Pratyush Yadav <ptyadav@amazon.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent 8ae5b3a commit dad651b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/nvme/host/pci.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2916,9 +2916,6 @@ static struct nvme_dev *nvme_pci_alloc_dev(struct pci_dev *pdev,
29162916
struct nvme_dev *dev;
29172917
int ret = -ENOMEM;
29182918

2919-
if (node == NUMA_NO_NODE)
2920-
set_dev_node(&pdev->dev, first_memory_node);
2921-
29222919
dev = kzalloc_node(sizeof(*dev), GFP_KERNEL, node);
29232920
if (!dev)
29242921
return ERR_PTR(-ENOMEM);

0 commit comments

Comments
 (0)