]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Move scx_error() out of scx_link_sched()'s lock region
authorTejun Heo <tj@kernel.org>
Thu, 7 May 2026 21:05:31 +0000 (11:05 -1000)
committerTejun Heo <tj@kernel.org>
Thu, 7 May 2026 21:05:50 +0000 (11:05 -1000)
commit4616a9c36be7e2e051ef53b0e8fd729da0277abf
tree46deb695c6538e2c9c7055f467e66d6f810e7ee2
parentb34c82777a2c0648ee053595f4b290fd5249b093
sched_ext: Move scx_error() out of scx_link_sched()'s lock region

scx_link_sched() holds scx_sched_lock. The scx_error() calls inside take the
same lock through scx_claim_exit() and deadlock. Move them out of the guard.

Fixes: 6b4576b09714 ("sched_ext: Reject sub-sched attachment to a disabled parent")
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
kernel/sched/ext.c