Re: [PATCH v3 sched_ext/for-7.3 13/36] sched_ext: Defer scx_sched kobj sysfs add into the enable workfns

From: Tejun Heo

Date: Wed Jul 08 2026 - 15:11:06 EST


On Tue, 07 Jul 2026 00:31:34 +0000, sashiko-bot@xxxxxxxxxx wrote:
> - [High] Moving sysfs addition into the new `scx_sched_sysfs_add()` helper introduces a new silent failure path in `scx_sub_enable_workfn()` that leaves the sub-scheduler in a half-initialized zombie state.

Correct - at this patch the errno-only failure path had no scx_error()
to claim the exit, so scx_flush_disable_work() no-ops and the sub is left
half-initialized. Fixed by adding an scx_error() at err_disable here (it
previously only appeared in a later patch).

Thanks.

--
tejun