On Tue, May 08, 2007 at 04:02:21PM +0400, Oleg Nesterov wrote:
...
But most often there is a simple rearming (but not neccessarily
always) work for which the first is not enough and the second
an overkill (especially with system/workqueues loaded).
Thanks for explanation - I try to think about this.
I meant held locks - maybe e.g. after seeing some flag set (or some
other global/per_cpu/atomic/whatever variable) in a processed work
insert_wq_barrier could be done in already locked place. Or maybe
the whole idea of these completions should be rethinked, for
something lighter (i.e. lockless)?
I agree 100% - it's -mm, the old way is working, so why hurry?
Jarek P.
-