[PATCH v2 0/6] sched fixes

Yury Norov
2023-08-19T14:12:46Z

Fixes for recently introduced sched_numa_find_nth_cpu(), and minor
improvements in sched/fair.

v1: https://lore.kernel.org/lkml/20230810162442.9863-1-yury.norov@gmail.com/T/
v2:
- fix wording in commit messages;
- move nearest node search inside rcu lock section in
sched_numa_find_nth_cpu();
- move NUMA_NO_NODE handling inside sched_numa_find_nth_cpu();
- rewrite comment for sched_numa_find_nth_cpu().
- add review tag from Yicong Yang.

Yury Norov (6):
numa: generalize numa_map_to_online_node()
sched/fair: fix opencoded numa_nearest_node()
sched: fix sched_numa_find_nth_cpu() in CPU-less case
sched: fix sched_numa_find_nth_cpu() in non-NUMA case
sched: handle NUMA_NO_NODE in sched_numa_find_nth_cpu()
sched: fix sched_numa_find_nth_cpu() comment

include/linux/numa.h | 7 +++++--
include/linux/topology.h | 2 +-
kernel/sched/fair.c | 14 +-------------
kernel/sched/topology.c | 25 +++++++++++++++++--------
lib/cpumask.c | 4 +---
mm/mempolicy.c | 18 +++++++++++-------
6 files changed, 36 insertions(+), 34 deletions(-)

--
2.39.2