Repository navigation
Commit d74b27d
cgroup/cpuset: Change cpuset_rwsem and hotplug lock order
cpuset_rwsem is going to be acquired from sched_setscheduler() with a
following patch. There are however paths (e.g., spawn_ksoftirqd) in
which sched_scheduler() is eventually called while holding hotplug lock;
this creates a dependecy between hotplug lock (to be always acquired
first) and cpuset_rwsem (to be always acquired after hotplug lock).
Fix paths which currently take the two locks in the wrong order (after
a following patch is applied).
Tested-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: bristot@redhat.com
Cc: claudio@evidence.eu.com
Cc: lizefan@huawei.com
Cc: longman@redhat.com
Cc: luca.abeni@santannapisa.it
Cc: mathieu.poirier@linaro.org
Cc: rostedt@goodmis.org
Cc: tj@kernel.org
Cc: tommaso.cucinotta@santannapisa.it
Link: https://lkml.kernel.org/r/20190719140000.31694-7-juri.lelli@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>1 parent 1243dc5 commit d74b27d
2 files changed
Lines changed: 21 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
| 976 | + | |
976 | 977 | | |
977 | | - | |
978 | 978 | | |
979 | 979 | | |
980 | 980 | | |
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
986 | | - | |
| 986 | + | |
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
990 | | - | |
| 990 | + | |
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
997 | | - | |
998 | | - | |
999 | 997 | | |
1000 | 998 | | |
1001 | 999 | | |
| |||
1005 | 1003 | | |
1006 | 1004 | | |
1007 | 1005 | | |
| 1006 | + | |
1008 | 1007 | | |
1009 | 1008 | | |
1010 | 1009 | | |
| 1010 | + | |
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| |||
2245 | 2245 | | |
2246 | 2246 | | |
2247 | 2247 | | |
| 2248 | + | |
2248 | 2249 | | |
2249 | 2250 | | |
2250 | 2251 | | |
| |||
2282 | 2283 | | |
2283 | 2284 | | |
2284 | 2285 | | |
| 2286 | + | |
2285 | 2287 | | |
2286 | 2288 | | |
2287 | 2289 | | |
| |||
2292 | 2294 | | |
2293 | 2295 | | |
2294 | 2296 | | |
| 2297 | + | |
2295 | 2298 | | |
2296 | 2299 | | |
2297 | 2300 | | |
| |||
2306 | 2309 | | |
2307 | 2310 | | |
2308 | 2311 | | |
| 2312 | + | |
2309 | 2313 | | |
2310 | 2314 | | |
2311 | 2315 | | |
| |||
2344 | 2348 | | |
2345 | 2349 | | |
2346 | 2350 | | |
| 2351 | + | |
2347 | 2352 | | |
2348 | 2353 | | |
2349 | 2354 | | |
| |||
2369 | 2374 | | |
2370 | 2375 | | |
2371 | 2376 | | |
| 2377 | + | |
2372 | 2378 | | |
2373 | 2379 | | |
2374 | 2380 | | |
| |||
2499 | 2505 | | |
2500 | 2506 | | |
2501 | 2507 | | |
| 2508 | + | |
2502 | 2509 | | |
2503 | 2510 | | |
2504 | 2511 | | |
2505 | 2512 | | |
2506 | 2513 | | |
2507 | 2514 | | |
2508 | 2515 | | |
| 2516 | + | |
2509 | 2517 | | |
2510 | 2518 | | |
2511 | 2519 | | |
| |||
2711 | 2719 | | |
2712 | 2720 | | |
2713 | 2721 | | |
| 2722 | + | |
2714 | 2723 | | |
2715 | 2724 | | |
2716 | 2725 | | |
| |||
2763 | 2772 | | |
2764 | 2773 | | |
2765 | 2774 | | |
| 2775 | + | |
2766 | 2776 | | |
2767 | 2777 | | |
2768 | 2778 | | |
| |||
2781 | 2791 | | |
2782 | 2792 | | |
2783 | 2793 | | |
| 2794 | + | |
2784 | 2795 | | |
2785 | 2796 | | |
2786 | 2797 | | |
| |||
2801 | 2812 | | |
2802 | 2813 | | |
2803 | 2814 | | |
| 2815 | + | |
2804 | 2816 | | |
2805 | 2817 | | |
2806 | 2818 | | |
| |||
0 commit comments