]> git.itanic.dy.fi Git - linux-stable/commit
sched/cpuset: Bring back cpuset_mutex
authorJuri Lelli <juri.lelli@redhat.com>
Mon, 8 May 2023 07:58:50 +0000 (09:58 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 8 May 2023 23:22:33 +0000 (13:22 -1000)
commit111cd11bbc54850f24191c52ff217da88a5e639b
tree22ff0fd667dbdfc39b55acf04c921ded13e84d8c
parentad3a557daf6915296a43ef97a3e9c48e076c9dd8
sched/cpuset: Bring back cpuset_mutex

Turns out percpu_cpuset_rwsem - commit 1243dc518c9d ("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).

Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/cpuset.h
kernel/cgroup/cpuset.c
kernel/sched/core.c