diff options
| author | 2026-07-23 15:07:56 -1000 | |
|---|---|---|
| committer | 2026-07-25 10:33:04 -1000 | |
| commit | 7947442047cff1d296ab615b8c6ddbc7c9b7bf21 (patch) | |
| tree | 8a703a019728877d1dfc4dd279225abe1ce0f828 /scripts/Makefile.thinlto | |
| parent | sched_ext: Gate scx_bpf_cidperf_set() behind a new SCX_CAP_PERF (diff) | |
sched_ext: Add scx_cgroup_sched() for cgrp->scx_sched reads
cgrp->scx_sched is __rcu and published with rcu_assign_pointer() but every
reader loads it with a plain access, so sparse flags all of them. The reads
are lock-protected: enable/disable paths rewrite the field under all of
scx_enable_mutex, scx_fork_rwsem and cgroup_mutex, and cgroup creation
inherits the parent's sched under cgroup_mutex before the new cgroup is
reachable, so holding any one of the three locks makes the read stable.
Add scx_cgroup_sched() which states the protection with
rcu_dereference_check() and convert the readers. No functional changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
