Re: Work queue questions

Tejun Heo
2012-09-21T19:40:41Z

Hello, Deepawali.

On Fri, Sep 21, 2012 at 08:35:13PM +0100, Deepawali Verma wrote:
> These three tasks are writing the three chunks of data in parallel. I
> am not getting improvement here otherwise what is difference between
> writing these chunks one by one in single thread instead of trying to
> write the data by scheduling the work on three different workqueues
> means 3 worker threads?

Workqueue is designed to supply sufficient concurrency for such use
cases and it has been doing so for all other in-kernel users for quite
some time now. If you're not getting concurrency in the above
scenario, either you've found a bug in workqueue or you did something
wrong. If you have a scenario not working for you, please post the
code.

Thanks.

--
tejun