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

Commit 669d93f8 authored by Todd Kjos's avatar Todd Kjos Committed by Alistair Delva
Browse files

Revert "sched/core: Prevent race condition between cpuset and __sched_setscheduler()"



This reverts commit 710da3c8.

When changing a thread's scheduling priority, binder calls
sched_setscheduler_nocheck() while holding the node lock and
proc inner lock. This was safe until v5.3 when this change was
introduced where cpuset_read_lock() is called in this path
which can sleep.

This patch was introduced to fix a possible accounting error
in sched deadline (potential oversell of CPU bandwidth) due
to a race condition between cpusets and __sched_setscheduler().
This is not an issue for Android.

This should be fixed in the binder driver, but that may take
some time.

Bug: 151861772
Change-Id: Ica1ef71b3cdcdc509b341ea1b57c41f8ee73794a
Signed-off-by: default avatarTodd Kjos <tkjos@google.com>
parent 553f33f4
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