]> git.ipfire.org Git - thirdparty/linux.git/commit
workqueue: Add warnings and ensure one among WQ_PERCPU or WQ_UNBOUND is present
authorMarco Crivellari <marco.crivellari@suse.com>
Fri, 29 May 2026 13:06:40 +0000 (15:06 +0200)
committerTejun Heo <tj@kernel.org>
Fri, 29 May 2026 17:56:48 +0000 (07:56 -1000)
commit21c05ca88a548ca1353cbef189c97d4f03b90692
tree244946cf5e312e22d6cec6b1624a98403c8fd2c6
parent64d8eae3f89583821f599c0aa398dd2e69b31a89
workqueue: Add warnings and ensure one among WQ_PERCPU or WQ_UNBOUND is present

Currently there are no checks in order to enforce the use of one between
WQ_PERCPU or WQ_UNBOUND.

So act as following:
- if neither of them is present, set WQ_PERCPU
- if both are present, remove WQ_PERCPU

Along with this change, WARN_ONCE(), so that the code still uses both or
neither of them, can be changed.

Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/
Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Marco Crivellari <marco.crivellari@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c