Re: Fix up riscom8 driver to use work queues instead of task queueing.

Andrew Morton
2003-08-18T20:47:09Z

Linus Torvalds <torvalds@osdl.org> wrote:
>
>
> On Mon, 18 Aug 2003, Jeff Garzik wrote:
> >
> > There was talk in another thread about fixing up workqueue to create
> > a new kernel thread, if one isn't available within five seconds.
>
> That's probably reasonable. Together with some upper limit to active
> threads, along with timeouting old queues when idle it would be fairly
> flexible. It's how basically all servers end up working, after all. It
> shouldn't be that hard to do.
>

Note that pdflush is already doing this. It doesn't seem to work very well
though:

a) new threads seem to start up too late

b) they probably don't hang around for long enough

c) now that pdflush avoids blocking on queues it's all rather overkill
anyway.

pdflush could kinda-sorta be converted to use workqueues, but it doesn't
want a thread per cpu.