diff options
| author | Liang Luo <luoliang@kylinos.cn> | 2026-07-28 14:09:55 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-08-02 10:16:39 -1000 |
| commit | c5b9316cf3d5371d53022352c7c9d248e14b801f (patch) | |
| tree | eb2f52b1e67091b86e78585624398f912ed4e682 /tools/perf/scripts/python | |
| parent | 680e0718b9f0b9f3067b2c3947088c2878f55442 (diff) | |
sched_ext: Set errno on ENABLING -> ENABLED transition failure
If the SCX_ENABLING -> SCX_ENABLED cmpxchg at the tail of
scx_root_enable_workfn() fails, the function jumps to err_disable
without setting ret. At that point ret still holds the return value
of the last successful __scx_init_task() call, which is 0, so the
err_disable fallback reports the meaningless message:
scx_root_enable() failed (0)
Set ret = -EBUSY, consistent with the other enable-state guards at
the top of the same function, so the fallback always reports a real
errno.
Signed-off-by: Liang Luo <luoliang@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
