nvme-pci: do not set the NUMA node of device if it has none
authorPratyush Yadav <ptyadav@amazon.de>
Tue, 12 Sep 2023 15:52:49 +0000 (17:52 +0200)
committerKeith Busch <kbusch@kernel.org>
Tue, 12 Sep 2023 16:06:58 +0000 (09:06 -0700)
commitdad651b2a44eb6b201738f810254279dca29d30d
treed640b134aaf8e1183e82b64c5b25fe4b38190028
parent8ae5b3a685dc59a8cf7ccfe0e850999ba9727a3c
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>
drivers/nvme/host/pci.c