]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched_ext: fix flag check for deferred callbacks
authorEmil Tsalapatis <etsal@meta.com>
Thu, 16 Oct 2025 18:11:26 +0000 (11:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Dec 2025 10:46:08 +0000 (11:46 +0100)
commit4a4abb0f9660de9f9336e3880249d5ea918cbabb
tree53bd692618af2e11950dda3d1a913aefb20eebad
parent18228a70a01a49e34fe599ccacc88a2bca70dce2
sched_ext: fix flag check for deferred callbacks

commit a3c4a0a42e61aad1056a3d33fd603c1ae66d4288 upstream.

When scheduling the deferred balance callbacks, check SCX_RQ_BAL_CB_PENDING
instead of SCX_RQ_BAL_PENDING. This way schedule_deferred() properly tests
whether there is already a pending request for queue_balance_callback() to
be invoked at the end of .balance().

Fixes: a8ad873113d3 ("sched_ext: defer queue_balance_callback() until after ops.dispatch")
Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/sched/ext.c