• Juri Lelli's avatar
    sched/cpuset: Bring back cpuset_mutex · 111cd11b
    Juri Lelli authored
    Turns out percpu_cpuset_rwsem - commit 1243dc51 ("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: default avatarJuri Lelli <juri.lelli@redhat.com>
    Reviewed-by: default avatarWaiman Long <longman@redhat.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    111cd11b
core.c 306 KB