Files
linux/kernel
Juri Lelli 0dfe87dff2 BACKPORT: sched/cpuset: Bring back cpuset_mutex
Turns out percpu_cpuset_rwsem - commit 1243dc518c ("cgroup/cpuset:
Convert cpuset_mutex to percpu_rwsem") - wasn't such a brilliant idea,
as it has been reported to cause slowdowns in workloads that need to
change cpuset configuration frequently and it is also not implementing
priority inheritance (which causes troubles with realtime workloads).

Convert percpu_cpuset_rwsem back to regular cpuset_mutex. Also grab it
only for SCHED_DEADLINE tasks (other policies don't care about stable
cpusets anyway).

Bug: 238390134
Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
(cherry picked from commit 111cd11bbc
https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git cgroup/for-6.5)
[Conflicts in all the files. Mostly trivial. cpuset.c had new functions
added on mainline and we rejected lots of hunks related to this new
code. Removed ANDROID specific BUG check that uses cpuset_rwsem which
was a left over from a revert of CPU PAUSE feature that should no longer
exist on 5.15]
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: Ibc77724cdd16a98053b277a79f724bbeb49621de
2023-06-15 21:03:11 +00:00
..
2023-04-26 13:37:41 +00:00
2023-04-17 11:31:12 +00:00
2022-12-31 13:14:47 +01:00
2023-03-23 12:10:59 +00:00
2023-06-09 08:39:36 +00:00
2023-03-21 10:16:45 +00:00
2023-03-17 13:35:31 +00:00
2023-04-25 16:02:54 +00:00
2023-01-18 12:52:16 +00:00
2022-02-23 12:30:26 +01:00
2023-02-01 09:38:19 +00:00
2023-03-23 12:10:59 +00:00
2021-05-07 00:26:33 -07:00
2023-02-01 09:38:19 +00:00
2021-09-28 08:49:54 -07:00
2020-07-27 14:31:12 -04:00
2022-04-24 16:57:32 +02:00
2023-04-26 13:37:41 +00:00
2023-02-01 09:38:19 +00:00
2020-08-19 14:13:20 +02:00
2022-09-24 10:01:09 +02:00