Commit 58b1a45
sched: Collate affine_move_task() stoppers
The SCA_MIGRATE_ENABLE and task_running() cases are almost identical,
collapse them to avoid further duplication.
Fixes: 6d337ea ("sched: Fix migrate_disable() vs set_cpus_allowed_ptr()")
Cc: stable@kernel.org
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lkml.kernel.org/r/20210224131355.500108964@infradead.org1 parent c20cf06 commit 58b1a45
1 file changed
+8
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2239 | 2239 | | |
2240 | 2240 | | |
2241 | 2241 | | |
2242 | | - | |
2243 | | - | |
2244 | | - | |
2245 | | - | |
2246 | | - | |
2247 | | - | |
2248 | | - | |
2249 | | - | |
2250 | | - | |
2251 | | - | |
2252 | | - | |
2253 | | - | |
2254 | 2242 | | |
2255 | 2243 | | |
2256 | | - | |
2257 | | - | |
2258 | | - | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
2259 | 2247 | | |
| 2248 | + | |
2260 | 2249 | | |
| 2250 | + | |
| 2251 | + | |
2261 | 2252 | | |
2262 | 2253 | | |
2263 | 2254 | | |
2264 | 2255 | | |
2265 | 2256 | | |
| 2257 | + | |
| 2258 | + | |
2266 | 2259 | | |
2267 | 2260 | | |
2268 | 2261 | | |
| |||
0 commit comments