* Re: [PATCH sched_ext/for-7.1-fixes] sched_ext: Use global task iter in scx_sub_enable_workfn() abort
[not found] <20260425023724.1249914-1-yphbchou0911@gmail.com>
@ 2026-04-28 0:25 ` Tejun Heo
0 siblings, 0 replies; only message in thread
From: Tejun Heo @ 2026-04-28 0:25 UTC (permalink / raw)
To: Cheng-Yang Chou
Cc: sched-ext, David Vernet, Andrea Righi, Changwoo Min,
Ching-Chun Huang, Chia-Ping Tsai, Emil Tsalapatis, linux-kernel
Hello,
The bug you reported is real but the proposed fix isn't quite right -
switching to global iteration in the abort path closes one window but
leaves scx_sub_disable() and scx_fail_parent() exposed to the same
iter-vs-sched_ext_dead() race in different forms, and the prep loop in
scx_sub_enable_workfn() also has problems with tasks past
sched_ext_dead().
I've posted a two-patch series that addresses the underlying issue at
the iter level:
https://lore.kernel.org/lkml/20260428001635.3293997-1-tj@kernel.org/
Thanks for the report.
--
tejun
^ permalink raw reply [flat|nested] only message in thread