Commit 50caf9c
sched: Simplify set_affinity_pending refcounts
Now that we have set_affinity_pending::stop_pending to indicate if a
stopper is in progress, and we have the guarantee that if that stopper
exists, it will (eventually) complete our @pending we can simplify the
refcount scheme by no longer counting the stopper thread.
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.724130207@infradead.org1 parent 9e81889 commit 50caf9c
1 file changed
+20
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1862 | 1862 | | |
1863 | 1863 | | |
1864 | 1864 | | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
1865 | 1869 | | |
1866 | 1870 | | |
1867 | 1871 | | |
| |||
1997 | 2001 | | |
1998 | 2002 | | |
1999 | 2003 | | |
2000 | | - | |
2001 | | - | |
2002 | | - | |
2003 | | - | |
2004 | 2004 | | |
2005 | 2005 | | |
2006 | 2006 | | |
| |||
2199 | 2199 | | |
2200 | 2200 | | |
2201 | 2201 | | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
2202 | 2206 | | |
2203 | | - | |
2204 | | - | |
| 2207 | + | |
2205 | 2208 | | |
2206 | 2209 | | |
2207 | 2210 | | |
| 2211 | + | |
2208 | 2212 | | |
2209 | 2213 | | |
2210 | 2214 | | |
| |||
2213 | 2217 | | |
2214 | 2218 | | |
2215 | 2219 | | |
2216 | | - | |
| 2220 | + | |
2217 | 2221 | | |
2218 | 2222 | | |
2219 | 2223 | | |
| |||
2264 | 2268 | | |
2265 | 2269 | | |
2266 | 2270 | | |
2267 | | - | |
2268 | 2271 | | |
2269 | 2272 | | |
| 2273 | + | |
2270 | 2274 | | |
2271 | 2275 | | |
2272 | 2276 | | |
| |||
2282 | 2286 | | |
2283 | 2287 | | |
2284 | 2288 | | |
2285 | | - | |
2286 | | - | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
2287 | 2293 | | |
2288 | 2294 | | |
2289 | 2295 | | |
2290 | | - | |
2291 | 2296 | | |
2292 | 2297 | | |
2293 | 2298 | | |
2294 | 2299 | | |
2295 | 2300 | | |
2296 | 2301 | | |
2297 | 2302 | | |
2298 | | - | |
| 2303 | + | |
2299 | 2304 | | |
2300 | 2305 | | |
2301 | 2306 | | |
2302 | 2307 | | |
2303 | 2308 | | |
2304 | 2309 | | |
2305 | 2310 | | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
2306 | 2314 | | |
2307 | 2315 | | |
2308 | 2316 | | |
| |||
0 commit comments