[PATCH RFC 0/2] workqueue: Make alloc_workqueue() unbound by default

From: Marco Crivellari

Date: Thu Jul 09 2026 - 06:44:11 EST


Hi,

This is a proposed change about the defualt behavior of alloc_workqueue().
Currently we enforce the use of WQ_PERCPU or WQ_UNBOUND. The pourpose of
this change is make the default behavior unbound so that calling
alloc_workqueue() without WQ_PERCPU results in an unbound workqueue.

After this step it would be possible remove WQ_UNBOUND from every
alloc_workqueue().

I tested the code with a small crafted driver, and to me it looks good.
Do you spot something I'm missed?

Thanks!

Marco Crivellari (2):
workqueue: Make unbound the default alloc_workqueue() behavior
docs: workqueue: Update WQ_PERCPU documentation

Documentation/core-api/workqueue.rst | 3 +-
include/linux/workqueue.h | 8 ++--
kernel/workqueue.c | 68 ++++++++++------------------
3 files changed, 30 insertions(+), 49 deletions(-)

--
2.54.0