Skip to content

Commit a3c4a0a

Browse files
etsalhtejun
authored andcommitted
sched_ext: fix flag check for deferred callbacks
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: a8ad873 ("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>
1 parent 05e6330 commit a3c4a0a

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
@@ -792,7 +792,7 @@ static void schedule_deferred(struct rq *rq)
792792
return;
793793

794794
/* Don't do anything if there already is a deferred operation. */
795-
if (rq->scx.flags & SCX_RQ_BAL_PENDING)
795+
if (rq->scx.flags & SCX_RQ_BAL_CB_PENDING)
796796
return;
797797

798798
/*

0 commit comments

Comments
 (0)