summaryrefslogtreecommitdiff
path: root/kernel/ucount.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-01-15 21:08:36 +0300
committerPeter Zijlstra <peterz@infradead.org>2021-01-22 17:09:43 +0300
commit640f17c82460e9724fd256f0a1f5d99e7ff0bda4 (patch)
tree843671442486fff2c92b7b7df424524a2f4fd96a /kernel/ucount.c
parent5c25b5ff89f004c30b04759dc34ace8585a4085f (diff)
downloadlinux-640f17c82460e9724fd256f0a1f5d99e7ff0bda4.tar.xz
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: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Valentin Schneider <valentin.schneider@arm.com> Tested-by: Valentin Schneider <valentin.schneider@arm.com> Link: https://lkml.kernel.org/r/20210121103506.826629830@infradead.org
Diffstat (limited to 'kernel/ucount.c')
0 files changed, 0 insertions, 0 deletions