Re: [GIT PULL] workqueue fixes for v4.3-rc5
From: Christoph Lameter
Date: Wed Oct 14 2015 - 14:58:36 EST
On Wed, 14 Oct 2015, Linus Torvalds wrote:
> On Wed, Oct 14, 2015 at 10:57 AM, Christoph Lameter <cl@xxxxxxxxx> wrote:
> >
> > Well yes the schedule_delayed_work_on() call is from another cpu and the
> > schedule_delayed_work() from the same. No confusion there.
>
> So "schedule_delayed_work()" does *not* guarantee that the work will
> run on the same CPU.
That is news to me. As far as I know: The only workqueue that is not
guaranteed to run on the same cpu is an unbound workqueue.
> If you want the scheduled work to happen on a particular CPU, then you
> should use "schedule_delayed_work_on()" It shouldn't matter which CPU
> you call it from.
Ok then lets audit the kernel for this if that assumption is no longer
true.
> At least that's how I think the rules should be. Very simple, very
> clear: if you require a specific CPU, say so. Don't silently depend on
> "in practice, lots of times we tend to use the local cpu".
As far as I can remember this was guaranteed and not just practice.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/