]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: Tag bound workers with KTHREAD_IS_PER_CPU
authorPeter Zijlstra <peterz@infradead.org>
Tue, 12 Jan 2021 10:26:49 +0000 (11:26 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 22 Jan 2021 14:09:42 +0000 (15:09 +0100)
commitb3a4ad9126ae51211041d8b3f7a64480a8b6e2cf
treea2132a7d24a2e50ef4d3703f3c00dbb55ce7a44e
parent768a8987201824d09b27f6486a60e4161b1d4ac5
workqueue: Tag bound workers with KTHREAD_IS_PER_CPU

Mark the per-cpu workqueue workers as KTHREAD_IS_PER_CPU.

Workqueues have unfortunate semantics in that per-cpu workers are not
default flushed and parked during hotplug, however a subset does
manual flush on hotplug and hard relies on them for correctness.

Therefore play silly games..

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.693465814@infradead.org
kernel/workqueue.c