Re: [PATCH] workqueue: Remove HK_TYPE_WQ from affecting wq_unbound_cpumask

From: Frederic Weisbecker

Date: Tue Mar 31 2026 - 17:38:51 EST


Le Tue, Mar 31, 2026 at 02:35:22PM -0400, Waiman Long a écrit :
> For historical reason, wq_unbound_cpumask is initially set as
> intersection of HK_TYPE_DOMAIN, HK_TYPE_WQ and workqueue.unbound_cpus
> boot command line option.
>
> At run time, users can update the unbound cpumask via the
> /sys/devices/virtual/workqueue/cpumask sysfs file. Creation
> and modification of cpuset isolated partitions will also update
> wq_unbound_cpumask based on the latest HK_TYPE_DOMAIN cpumask.
> The HK_TYPE_WQ cpumask is out of the picture with these runtime updates.
>
> Complete the transition by taking HK_TYPE_WQ out from the workqueue code
> and make it depends on HK_TYPE_DOMAIN only from the housekeeping side.
> The final goal is to eliminate HK_TYPE_WQ as a housekeeping cpumask type.
>
> Signed-off-by: Waiman Long <longman@xxxxxxxxxx>

Acked-by: Frederic Weisbecker <frederic@xxxxxxxxxx>

--
Frederic Weisbecker
SUSE Labs