lkml.org 
[lkml]   [2009]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC][PATCH] create workqueue threads only when needed
Date
Am Monday 02 February 2009 21:44:17 schrieb Benjamin Herrenschmidt:
>
> > > Something such as slow-work or async funcs (not sure about the later, I
> > > have to look at the implementation) but the basic idea is to have a pool
> > > of threads for "generic" delayed work, when its busy, pick another one,
> > > and the pool itself should resize if there's too much pressure.
> >
> > And all that without using GFP_KERNEL?
>
> Not too hard. There are options here, one is to keep always one thread
> available in the pool that will create new ones, one is to hop via
> keventd for the creation, which is still better than spending 200ms
> resetting a network NIC, etc...

But how does that solve the underlying problem of not being
allowed to hit the block layer? It seems to me you cannot do
without dedicated threads for block error handling. In fact, given
how rare this is, why not start one and share it?

Regards
Oliver



\
 
 \ /
  Last update: 2009-02-04 10:55    [W:0.097 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site