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

From: Andrew Morton
Date: Mon Aug 18 2003 - 15:53:36 EST


Linus Torvalds <torvalds@xxxxxxxx> 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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/