Re: [PATCH sched_ext/for-7.1-fixes] sched_ext: Use global task iter in scx_sub_enable_workfn() abort
From: Tejun Heo
Date: Mon Apr 27 2026 - 20:25:55 EST
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@xxxxxxxxxx/
Thanks for the report.
--
tejun