Re: [PATCH v4 1/2] workqueue: add new schedule_on_cpu_mask() API

2013-08-09 Thread Tejun Heo
Hello, Chris. On Fri, Aug 09, 2013 at 12:12:43PM -0400, Chris Metcalf wrote: > I could certainly make schedule_on_cpu_mask() do sanity checking, > perhaps via a WARN_ON_ONCE() if offline cpus were specified, and > otherwise just have it create a local struct cpumask that it and's > with cpu_online

Re: [PATCH v4 1/2] workqueue: add new schedule_on_cpu_mask() API

2013-08-09 Thread Chris Metcalf
On 8/9/2013 11:02 AM, Tejun Heo wrote: > Hello, Chris. > > On Wed, Aug 07, 2013 at 04:49:44PM -0400, Chris Metcalf wrote: >> This primitive allows scheduling work to run on a particular set of >> cpus described by a "struct cpumask". This can be useful, for example, >> if you have a per-cpu variab

Re: [PATCH v4 1/2] workqueue: add new schedule_on_cpu_mask() API

2013-08-09 Thread Tejun Heo
Hello, Chris. On Wed, Aug 07, 2013 at 04:49:44PM -0400, Chris Metcalf wrote: > This primitive allows scheduling work to run on a particular set of > cpus described by a "struct cpumask". This can be useful, for example, > if you have a per-cpu variable that requires code execution only if the > p

[PATCH v4 1/2] workqueue: add new schedule_on_cpu_mask() API

2013-08-07 Thread Chris Metcalf
This primitive allows scheduling work to run on a particular set of cpus described by a "struct cpumask". This can be useful, for example, if you have a per-cpu variable that requires code execution only if the per-cpu variable has a certain value (for example, is a non-empty list). Signed-off-by