[RFC PATCH v2 0/5] leaf_cfs_rq_list cleanups and fix

From: Michal Koutný
Date: Thu Aug 19 2021 - 13:50:48 EST


Hello.

This is an extension of the simplification patch posted previously. The
original goal was to make the code a bit more readable but I noticed a
bug meanwhile and included it in the series.

Reason for RFC:
- I noticed an asymmetry in update_cfs_group(se) calls between
unthrottle_cfs_rq() and enqueue_task_fair(), not sure if the omission
is warranted. It's marked XXX in the patch "sched/fair: Simplify
ancestor enqueue loops"

Patch 1
- fix of load_cfs_rq_list handling

Patches 2, 3
- just (re)naming things

Patch 4, 5
- simplifications of load_cfs_rq_list and ancestor processing loops
- no functional changes intended



RFC v1:
https://lore.kernel.org/r/20210225162757.48858-1-mkoutny@xxxxxxxx

Michal Koutný (5):
sched/fair: Add ancestors of unthrottled undecayed cfs_rq
sched: Add group_se() helper
sched/fair: Rename leaf_list to more fitting load_list
sched/fair: Simplify load_cfs_rq_list maintenance
sched/fair: Simplify ancestor enqueue loops

kernel/sched/core.c | 4 +-
kernel/sched/fair.c | 220 +++++++++++++++++--------------------------
kernel/sched/sched.h | 25 ++---
3 files changed, 104 insertions(+), 145 deletions(-)

--
2.32.0