Skip to content

nvme: find numa distance only if controller has valid numa id

John Meneghini requested to merge johnmeneghini/centos-stream-9:r35806 into main

Merge Request Required Information

JIRA: https://issues.redhat.com/browse/RHEL-35806

Summary of Changes

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).

Signed-off-by: John Meneghini jmeneghi@redhat.com

Merge request reports