summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-10-29 12:28:59 -1000
committerTejun Heo <tj@kernel.org>2026-10-30 11:37:18 -1000
commit0aba89317f386f43c946d91238af28250b4dbc60 (patch)
tree93c17a8e4563fc3cce24b5bbdbe6ec4dc4b9b195 /rust/kernel/alloc/kvec/errors.rs
parent360d281b159153ceb7c254a773433bae1858bd21 (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 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions