Re: [PATCH v2 1/2] workqueue: Allow to expose ordered workqueues via sysfs
From: Tejun Heo
Date: Fri Feb 27 2026 - 12:15:36 EST
On Fri, Feb 27, 2026 at 06:01:02PM +0100, Sebastian Andrzej Siewior wrote:
> Ordered workqueues are not exposed via sysfs because the 'max_active'
> attribute changes the number actives worker. More than one active worker
> can break ordering guarantees.
>
> This can be avoided by forbidding writes the file for ordered
> workqueues. Exposing it via sysfs allows to alter other attributes such
> as the cpumask on which CPU the worker can run.
>
> The 'max_active' value shouldn't be changed for BH worker because the
> core never spawns additional worker and the worker itself can not be
> preempted. So this make no sense.
>
> Allow to expose ordered workqueues via sysfs if requested and forbid
> changing 'max_active' value for ordered and BH worker.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
Acked-by: Tejun Heo <tj@xxxxxxxxxx>
I can apply this to wq/for-7.1. Would that work?
Thanks.
--
tejun