[PATCH wq/for-7.4 0/2] workqueue: give percpu its own max_active and derive attrs from flags

Breno Leitao posted 2 patches 2 weeks, 1 day ago
kernel/workqueue.c | 120 ++++++++++++++++++++++++++---------------------------
1 file changed, 59 insertions(+), 61 deletions(-)
[PATCH wq/for-7.4 0/2] workqueue: give percpu its own max_active and derive attrs from flags
Posted by Breno Leitao 2 weeks, 1 day ago
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@debian.org/

Signed-off-by: Breno Leitao <leitao@debian.org>
---
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@debian.org>
Re: [PATCH wq/for-7.4 0/2] workqueue: give percpu its own max_active and derive attrs from flags
Posted by Tejun Heo 2 weeks ago
> Breno Leitao (2):
>       workqueue: give percpu workqueues their own max_active
>       workqueue: derive the standard attrs from the workqueue flags

Applied 1-2 to wq/for-7.4.

Thanks.
--
tejun