Commit a3c4a0a4 authored by Emil Tsalapatis's avatar Emil Tsalapatis Committed by Tejun Heo
Browse files

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: a8ad8731 ("sched_ext: defer queue_balance_callback() until after ops.dispatch")
Signed-off-by: default avatarEmil Tsalapatis <emil@etsalapatis.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 05e63305
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -792,7 +792,7 @@ static void schedule_deferred(struct rq *rq)
		return;

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

	/*