Commit 2e0199d
Peter Zijlstra
sched/fair: Prepare exit/cleanup paths for delayed_dequeue
When dequeue_task() is delayed it becomes possible to exit a task (or
cgroup) that is still enqueued. Ensure things are dequeued before
freeing.
Thanks to Valentin for asking the obvious questions and making
switched_from_fair() less weird.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Valentin Schneider <[email protected]>
Tested-by: Valentin Schneider <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]1 parent e28b5f8 commit 2e0199d
1 file changed
+46
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8342 | 8342 | | |
8343 | 8343 | | |
8344 | 8344 | | |
8345 | | - | |
| 8345 | + | |
| 8346 | + | |
| 8347 | + | |
| 8348 | + | |
| 8349 | + | |
| 8350 | + | |
| 8351 | + | |
| 8352 | + | |
| 8353 | + | |
| 8354 | + | |
| 8355 | + | |
| 8356 | + | |
| 8357 | + | |
| 8358 | + | |
| 8359 | + | |
8346 | 8360 | | |
8347 | 8361 | | |
8348 | 8362 | | |
| |||
12854 | 12868 | | |
12855 | 12869 | | |
12856 | 12870 | | |
| 12871 | + | |
| 12872 | + | |
| 12873 | + | |
| 12874 | + | |
| 12875 | + | |
| 12876 | + | |
| 12877 | + | |
| 12878 | + | |
| 12879 | + | |
| 12880 | + | |
12857 | 12881 | | |
12858 | 12882 | | |
12859 | 12883 | | |
12860 | 12884 | | |
| 12885 | + | |
| 12886 | + | |
12861 | 12887 | | |
12862 | 12888 | | |
12863 | 12889 | | |
| |||
13008 | 13034 | | |
13009 | 13035 | | |
13010 | 13036 | | |
13011 | | - | |
13012 | | - | |
13013 | 13037 | | |
13014 | 13038 | | |
13015 | 13039 | | |
13016 | 13040 | | |
13017 | 13041 | | |
13018 | | - | |
13019 | | - | |
| 13042 | + | |
| 13043 | + | |
| 13044 | + | |
| 13045 | + | |
| 13046 | + | |
| 13047 | + | |
| 13048 | + | |
| 13049 | + | |
| 13050 | + | |
| 13051 | + | |
| 13052 | + | |
| 13053 | + | |
| 13054 | + | |
| 13055 | + | |
| 13056 | + | |
13020 | 13057 | | |
13021 | 13058 | | |
13022 | 13059 | | |
13023 | 13060 | | |
13024 | 13061 | | |
13025 | | - | |
13026 | | - | |
13027 | | - | |
13028 | | - | |
13029 | | - | |
13030 | | - | |
13031 | | - | |
13032 | | - | |
| 13062 | + | |
| 13063 | + | |
| 13064 | + | |
| 13065 | + | |
13033 | 13066 | | |
13034 | 13067 | | |
13035 | 13068 | | |
| |||
0 commit comments