Skip to content

Commit 4a4abb0

Browse files
etsalgregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 18228a7 commit 4a4abb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/ext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ static void schedule_deferred(struct rq *rq)
821821
return;
822822

823823
/* Don't do anything if there already is a deferred operation. */
824-
if (rq->scx.flags & SCX_RQ_BAL_PENDING)
824+
if (rq->scx.flags & SCX_RQ_BAL_CB_PENDING)
825825
return;
826826

827827
/*

0 commit comments

Comments
 (0)