[PATCH wq/for-7.4 0/2] workqueue: give percpu its own max_active and derive attrs from flags
From: Breno Leitao
Date: Thu Sep 10 2026 - 11:10:02 EST
Phase two of unifying the percpu and unbound workqueue paths, following
the discussion at [1].
wq->max_active means one thing on a concurrency managed per-cpu pool and
another on an unbound one. Patch 1 gives the per-cpu case its own field,
as Tejun suggested.
Patch 2 builds the standard attrs from the workqueue flags instead of
picking one of three static arrays, which leaves alloc_and_link_pwqs()
with a single apply_workqueue_attrs_locked() call for every workqueue
No visible change intented for our workqueue users.
[1] https://lore.kernel.org/all/20260714-tejun1-v1-0-024d59241386@xxxxxxxxxx/
Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
---
Breno Leitao (2):
workqueue: give percpu workqueues their own max_active
workqueue: derive the standard attrs from the workqueue flags
kernel/workqueue.c | 120 ++++++++++++++++++++++++++---------------------------
1 file changed, 59 insertions(+), 61 deletions(-)
---
base-commit: f1639cde5f5c1bee25498ef988227ee8cf5ddb04
change-id: 20260910-realsplit_last_v2-3a73d7986db4
Best regards,
--
Breno Leitao <leitao@xxxxxxxxxx>