diff options
| author | Tejun Heo <tj@kernel.org> | 2026-06-25 13:23:56 -1000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-06-29 10:10:29 -1000 |
| commit | cb36d81e751173c4b59b5e561c596c925144ea48 (patch) | |
| tree | e42cb255f5467c4de970493819757f3821cc00a8 /Documentation/gpu/intel-display/git@git.tavy.me:linux.git | |
| parent | 115d1ce989747045bd7745c7ab020982660c7e42 (diff) | |
sched_ext: Pin parent scx_sched across a child sub-scheduler's lifetime
A child sub-scheduler dereferences its parent scx_sched throughout its life,
e.g., in scx_sub_disable() which reparents the child's tasks and calls
parent->ops.sub_detach() after unlinking from the parent. However, the
parent is pinned only through parent->sub_kset, which is dropped during
disable. The parent scx_sched can be RCU-freed while a child is still
disabling.
Take a direct reference on the parent in scx_alloc_and_add_sched(), dropped
in scx_sched_free_rcu_work(), so a parent always outlives its descendants.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'Documentation/gpu/intel-display/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
