Commit 97f38170 authored by Yury Norov's avatar Yury Norov Committed by Greg Kroah-Hartman
Browse files

sched/topology: Handle NUMA_NO_NODE in sched_numa_find_nth_cpu()



[ Upstream commit 9ecea9ae ]

sched_numa_find_nth_cpu() doesn't handle NUMA_NO_NODE properly, and
may crash kernel if passed with it. On the other hand, the only user
of sched_numa_find_nth_cpu() has to check NUMA_NO_NODE case explicitly.

It would be easier for users if this logic will get moved into
sched_numa_find_nth_cpu().

Signed-off-by: default avatarYury Norov <yury.norov@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Link: https://lore.kernel.org/r/20230819141239.287290-6-yury.norov@gmail.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7ede6ef0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment