Re: [PATCH] workqueue: introduce queue_work_cpumask to queue work onto a given cpumask

From: Tejun Heo
Date: Wed Jun 21 2023 - 17:32:27 EST


Hello,

On Tue, Jun 13, 2023 at 06:25:44PM +0800, Yuanhan Zhang wrote:
> If I have several kinds of works, and I'd like to make them run on
> different cpusets
> (so it is not ideal to put them on WQ_UNBOUND).

So, you can achieve that by creating a workqueue for each group of work
items. Each workqueue is just a front-end to shared pools of workers and
groups work items according to their attributes and flush grouping needs,
which is what you're asking for here.

Thanks.

--
tejun