forked from raspberrypi/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scx: Reorder scx_fork_rwsem, cpu_hotplug_lock and scx_cgroup_rwsem
scx_cgroup_rwsem and scx_fork_rwsem, respectively, are in the following locking dependency chain. cpu_hotplug_lock --> cgroup_threadgroup_rwsem --> scx_cgroup_rwsem scx_fork_rwsem --> pernet_ops_rwsem --> cpu_hotplug_lock And we need to flip static_key which requires CPUs stable. The only locking order which satifies all three requirements is scx_fork_rwsem --> cpu_hotplug_lock --> scx_cgroup_rwsem Reorder locking in scx_ops_enable() and scx_ops_disable_workfn(). Signed-off-by: Tejun Heo <tj@kernel.org>
- Loading branch information
Showing
1 changed file
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters