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

From: Jens Axboe
Date: Thu Apr 08 2021 - 15:43:24 EST


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 running outside
> of its allowed mask for potentially significant time.
>
> Use the proper API instead.

Applied, thanks Peter.

--
Jens Axboe