Skip to content
Commit 7ba47fda authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

workqueue: Restrict affinity change to rescuer



create_worker() will already set the right affinity using
kthread_bind_mask(), this means only the rescuer will need to change
it's affinity.

Howveer, while in cpu-hot-unplug a regular task is not allowed to run
on online&&!active as it would be pushed away quite agressively. We
need KTHREAD_IS_PER_CPU to survive in that environment.

Therefore set the affinity after getting that magic flag.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
parent 5d34d100
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment