[PATCHv3] nvme: find numa distance only if controller has valid numa id
Keith Busch
kbusch at kernel.org
Tue Apr 16 09:44:37 PDT 2024
On Tue, Apr 16, 2024 at 01:49:23PM +0530, Nilay Shroff wrote:
> On system where native nvme multipath is configured and iopolicy
> is set to numa but the nvme controller numa node id is undefined
> or -1 (NUMA_NO_NODE) then avoid calculating node distance for
> finding optimal io path. In such case we may access numa distance
> table with invalid index and that may potentially refer to incorrect
> memory. So this patch ensures that if the nvme controller numa node
> id is -1 then instead of calculating node distance for finding optimal
> io path, we set the numa node distance of such controller to default 10
> (LOCAL_DISTANCE).
Thanks, applied to nvme-6.9.
More information about the Linux-nvme
mailing list