workqueue: Make default affinity_scope dynamically updatable
authorTejun Heo <tj@kernel.org>
Tue, 8 Aug 2023 01:57:25 +0000 (15:57 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 8 Aug 2023 01:57:25 +0000 (15:57 -1000)
commit523a301e66afd1ea9856660bcf3cee3a7c84c6dd
tree56cfc70a2006d4441b420b0fa539a40694ff0c86
parent7dbf15c5c05e835d488e0fee49a35b0f23452e45
workqueue: Make default affinity_scope dynamically updatable

While workqueue.default_affinity_scope is writable, it only affects
workqueues which are created afterwards and isn't very useful. Instead,
let's introduce explicit "default" scope and update the effective scope
dynamically when workqueue.default_affinity_scope is changed.

Signed-off-by: Tejun Heo <tj@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
Documentation/core-api/workqueue.rst
include/linux/workqueue.h
kernel/workqueue.c