Re: [PATCH] io-wq: Fix io_wq_worker_affinity()

2021-04-08 Thread Jens Axboe
On 4/8/21 3:44 AM, Peter Zijlstra wrote: > > Do not include private headers and do not frob in internals. > > On top of that, while the previous code restores the affinity, it > doesn't ensure the task actually moves there if it was running, > leading to the fun situation that it can be observed

[PATCH] io-wq: Fix io_wq_worker_affinity()

2021-04-08 Thread Peter Zijlstra
Do not include private headers and do not frob in internals. On top of that, while the previous code restores the affinity, it doesn't ensure the task actually moves there if it was running, leading to the fun situation that it can be observed running outside of its allowed mask for potentially