[PATCH v2 0/2] Add WQ_PERCPU to alloc_workqueue users

From: Marco Crivellari

Date: Mon Feb 23 2026 - 04:31:32 EST


Hi,

Recently the workqueue code has been changed introducing two new workqueue,
system_percpu_wq and system_dfl_wq, as a future replacement for system_wq and
system_unbound_wq respectively, and a new flag, alloc_workqueue() WQ_PERCPU.
This flag must be used when WQ_UNBOUND is not present, making explicit the
workqueue is per-cpu.

The changes has been introduced by:
commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq")
commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag")

The old workqueue(s) will be removed in a next release cycle.

=== Introduced Changes by this series ===

1) [P 1-2] add WQ_PERCPU to alloc_workqueue()

This change adds a new WQ_PERCPU flag to explicitly request
alloc_workqueue() to be per-cpu when WQ_UNBOUND has not been specified.


Thanks!

---
Changes in v2:
- patches unified in 1 series
- rebase on v7.0-rc1


Marco Crivellari (2):
block: Add WQ_PERCPU to alloc_workqueue users
block/blk-throttle: Add WQ_PERCPU to alloc_workqueue users

block/bio-integrity-auto.c | 2 +-
block/bio.c | 2 +-
block/blk-core.c | 2 +-
block/blk-throttle.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)

--
2.52.0