aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorNilay Shroff <[email protected]>2024-04-16 13:49:23 +0530
committerKeith Busch <[email protected]>2024-05-01 02:58:42 -0700
commit863fe60ed27f2c85172654a63c5b827e72c8b2e6 (patch)
treed84bd3286e5ba226b4f82bc7e39001bf721ccf24 /tools/perf/scripts/python/export-to-sqlite.py
parent0bc2e80b9be51712b19e919db5abc97a418f8292 (diff)
nvme: find numa distance only if controller has valid numa id
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). Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Nilay Shroff <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions