Commit 4c22fcf5 authored by Pratyush Yadav's avatar Pratyush Yadav Committed by sanglipeng
Browse files

nvme-pci: do not set the NUMA node of device if it has none

stable inclusion
from stable-v5.10.198
commit 0d599a3f57a51014209ebd7a177da03fe9c6040f
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I987V5

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0d599a3f57a51014209ebd7a177da03fe9c6040f



--------------------------------

[ Upstream commit dad651b2 ]

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: default avatarPratyush Yadav <ptyadav@amazon.de>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 171b12cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment