diff options
| author | Cui Jian <cjian720@163.com> | 2026-07-22 18:03:52 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-07-22 08:31:30 -1000 |
| commit | 00a08ddfb48bb85885a8665bc56716c4d2f9bd82 (patch) | |
| tree | cc1a4511996a84f2bad7855536d109014a33bc43 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 2abee44c7db9fa7c2d380fc25866617f59a9c1e0 (diff) | |
sched_ext: Fix stale errno in scx_sub_enable_workfn()
The nesting depth check and the cgroup online check in
scx_sub_enable_workfn() reach err_disable without setting ret, so
the fallback error added by commit db4e9defd2e8 ("sched_ext: Record
an error on errno-only sub-enable failure") reports
"scx_sub_enable() failed (0)".
This is currently harmless because both paths record their own
scx_error() first and the first error wins, but it leaves the
fallback broken for these paths. Set -EINVAL and -ENODEV there
so the fallback always reports a real errno.
v2: The validate_ops() path from v1 is already fixed in for-7.3
(sub.c already has ret = scx_validate_ops()), so only the two
remaining paths are addressed.
Signed-off-by: Cui Jian <cjian720@163.com>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
