lkml.org 
[lkml]   [2012]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCHSET] workqueue: reimplement CPU hotplug to keep idle workers
From
Date
On Fri, 2012-07-20 at 09:52 -0700, Tejun Heo wrote:
> Ooh, yeah, I agree. That's next on the wq to-do list. The problem is
> that queue_work() is implemented in terms of queue_work_on().

But that's trivial to fix, both could use __queue_work() without too
much bother, right?

> In most
> cases, the local binding serves as locality optimization than anything
> else. There are use cases where affinity is required for correctness.

> The assumption was that they should flush during CPU_DOWN but it
> probably will be much better to require users which need CPU affinity
> to always use queue_work_on() - instead of implicit local affinity
> from queue_work() - and flush them automatically from wq callback.
>

Right, and when you create this new mode, which you need to know to
flush on DOWN, you can simply put a BUG_ON in queue_work_on() when this
mode is set.




\
 
 \ /
  Last update: 2012-07-20 19:41    [W:0.127 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site