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

Skip to content
Commit 08e0320a authored by Jignesh Patel's avatar Jignesh Patel Committed by Razziell
Browse files

binder: Fix concurrency issue in target_thread wakeup



until wake_up_interruptible_sync returns, couldn't another thread
just take control of the CPU anyway before the return.
This call will also prevent a reschedule.

Should be use wake_up_interruptible() call to immediately reschedule
target_thread instead of using wake_up_interruptible_sync() to block
the target_thread until CPU available to run.

Also protect target_thread with spinlock.

Change-Id: Ib2702bc798bf6927cee753811b39032f0aefe166
Signed-off-by: default avatarJignesh Patel <jignesh@motorola.com>
Reviewed-on: https://gerrit.mot.com/1264379


SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: default avatarIgor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
parent 4a0568d0
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