Re: [PATCH] flush_cpu_workqueue: don't flush an empty ->worklist

From: Srivatsa Vaddagiri
Date: Wed Jan 17 2007 - 11:12:43 EST


On Wed, Jan 17, 2007 at 06:47:16PM +0300, Oleg Nesterov wrote:
> > What do you mean by "currently" executing work? worker thread executing
> > some work on the cpu? That is not possible, because all threads are
> > frozen at this point. There cant be any ongoing flush_workxxx() as well
> > because of this, which should avoid breaking flush_workxxx() ..
>
> work->func() sleeps/freezed.

Didnt Andrew call that (work->func calling try_to_freeze) madness?

http://lkml.org/lkml/2007/01/07/166

Does that happen in practice?

--
Regards,
vatsa
-
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/