Skip to content
Commit e0051d7d authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Jens Axboe
Browse files

io-wq: Fix io_wq_worker_affinity()



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.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/YG7QkiUzlEbW85TU@hirez.programming.kicks-ass.net


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent cb3b200e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment