Messages in this thread | | | Subject | Re: [PATCH] speedup flush_workqueue for singlethread_workqueue | From | Rusty Russell <> | Date | Sun, 06 Jun 2004 12:11:15 +1000 |
| |
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
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |