mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH wq/for-7.4 0/2] workqueue: give percpu its own max_active and derive attrs from flags
@ 2026-09-10 14:54 Breno Leitao
  2026-09-10 14:54 ` [PATCH wq/for-7.4 1/2] workqueue: give percpu workqueues their own max_active Breno Leitao
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Breno Leitao @ 2026-09-10 14:54 UTC (permalink / raw)
  To: Tejun Heo, Lai Jiangshan
  Cc: marco.crivellari, linux-kernel, Breno Leitao, kernel-team

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>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-10 22:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-10 14:54 [PATCH wq/for-7.4 0/2] workqueue: give percpu its own max_active and derive attrs from flags Breno Leitao
2026-09-10 14:54 ` [PATCH wq/for-7.4 1/2] workqueue: give percpu workqueues their own max_active Breno Leitao
2026-09-10 14:54 ` [PATCH wq/for-7.4 2/2] workqueue: derive the standard attrs from the workqueue flags Breno Leitao
2026-09-10 22:53 ` [PATCH wq/for-7.4 0/2] workqueue: give percpu its own max_active and derive attrs from flags Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®