summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-01-15 19:08:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-02-07 15:35:49 +0100
commitb1a1c262e4b0e713e52c63bd3233f1b9d6f2f056 (patch)
tree7296c2ff957794eac56dca0edb301cb7f5d5f285 /block
parent5b1e4fc2984eab30c5fffbf2bd1f016577cadab6 (diff)
workqueue: Restrict affinity change to rescuer
[ Upstream commit 640f17c82460e9724fd256f0a1f5d99e7ff0bda4 ] 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 Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions