diff options
| author | Tejun Heo <tj@kernel.org> | 2026-07-23 15:07:56 -1000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-07-25 10:33:04 -1000 |
| commit | 7947442047cff1d296ab615b8c6ddbc7c9b7bf21 (patch) | |
| tree | 8a703a019728877d1dfc4dd279225abe1ce0f828 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 3a21e34eb2588e135190cf5c48e64397bc18d0b5 (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 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
