[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZIJbvCcaqjzNteWs@slm.duckdns.org>
Date: Thu, 8 Jun 2023 12:52:44 -1000
From: Tejun Heo <tj@...nel.org>
To: jiangshanlai@...il.com, linux-kernel@...r.kernel.org,
pmladek@...e.com, zyhtheonly@...il.com, zyhtheonly@...h.net,
zwp10758@...il.com
Subject: Re: [PATCH] workqueue: introduce queue_work_cpumask to queue work
onto a given cpumask
On Tue, Jun 06, 2023 at 05:31:35PM +0800, Tio Zhang wrote:
> Introduce queue_work_cpumask to queue work on a "random" CPU onto a given
> cpumask. It would be helpful when devices/modules want to assign works on
> different cpusets but do not want to maintain extra workqueues, since they
> have to alloc different workqueues and set different
> workqueue_attrs->cpumask in the past times.
>
> For now only available for unbound workqueues, We will try to further
> patch it.
> And default to the first CPU that is in the intersection of the cpumask
> given and the online cpumask.
> The only exception is if the CPU is local in the cpuset we will just use
> the current CPU.
>
> The implementation and comments are referenced from
> 'commit 8204e0c1113d ("workqueue: Provide queue_work_node to queue work
> near a given NUMA node")'
Can you elaborate the intended use cases?
Thanks.
--
tejun
Powered by blists - more mailing lists