Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d67250b2 authored by Olav Haugan's avatar Olav Haugan Committed by Syed Rameez Mustafa
Browse files

sched: Fix race condition with active balance



There is a race condition between checking for whether an active load
balance request has been set and clearing the request. A cpu might have
an active load balance request set and queued but not executed yet.
Before the load balance request is executed the request flag might be
cleared by cpu isolation. Then subsequently the load balancer or tick
might try to do another active load balance.  This can cause the same
active load balance work to be queued twice causing report of list
corruption.

Fix this by moving the clearing of the request to the stopper thread and
ensuring that load balance will not try to queue a request on an
already isolated cpu.

Change-Id: I5c900d2ee161fa692d66e3e66012398869715662
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent 88040bd2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment