Re: [patch] smptimers, old BH removal, tq-cleanup, 2.5.39

Christoph Hellwig
2002-09-30T17:23:40Z

On Mon, Sep 30, 2002 at 07:12:54PM +0200, Ingo Molnar wrote:
> > Not exactly. All your work on one queue is internally serialize. An
> > totally unserialized workqueue would be best for XFS.
>
> you can create as many queues as you wish - one per CPU for example. Or
> one per mounted fs per CPU.

Yeah. But adding a create_workqueue_per_cpu that has one queue and thead
per cpu to which queue_work dispatches would centralize the code needed
to manage that in one place instead of duplicating it over and over.

Sure both works, but IMHO hiding it behind a nice abstraction is much
better.