diff options
| author | Tejun Heo <tj@kernel.org> | 2026-10-29 12:28:59 -1000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-10-30 11:37:18 -1000 |
| commit | 0aba89317f386f43c946d91238af28250b4dbc60 (patch) | |
| tree | 93c17a8e4563fc3cce24b5bbdbe6ec4dc4b9b195 /tools/perf/scripts/python/bin | |
| parent | 360d281b159153ceb7c254a773433bae1858bd21 (diff) | |
sched_ext: Call ops.sub_attach() only while the cgroup is online
The parent's ops.sub_attach() runs before the enable work checks that the
cgroup is still online, so the parent can get an attach for a cgroup whose
rmdir already returned. That complicates parents where cgroup cleanup and
sub-scheduler attach race.
Check CSS_ONLINE and call ops.sub_attach() under cgroup_lock(), so that the
parent sees an attach only for a cgroup that is online.
Fixes: ebeca1f930ea ("sched_ext: Introduce cgroup sub-sched support")
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
