Re: [PATCH] speedup flush_workqueue for singlethread_workqueue

Rusty Russell
2004-06-06T02:11:48Z

On Sat, 2004-06-05 at 08:30, Andrew Morton wrote:
> "Anil" <anil.s.keshavamurthy@intel.com> wrote:
> >
> > In the flush_workqueue function for a single_threaded_worqueue case the code seemed to loop the same cpu_workqueue_struct
> > for each_online_cpu's. The attached patch checks this condition and bails out of for loop there by speeding up the flush_workqueue
> > for a singlethreaded_workqueue.
>
>
> OK, thanks. I think it's a bit clearer to do it as below. I haven't
> tested it though.

Me neither, but agree.

Rusty.
--
Anyone who quotes me in their signature is an idiot -- Rusty Russell