Messages in this thread | | | Date | Tue, 1 Jul 2008 06:53:57 -0600 | From | Matthew Wilcox <> | Subject | Re: [Ksummit-2008-discuss] Delayed interrupt work, thread pools |
| |
On Tue, Jul 01, 2008 at 10:45:35PM +1000, Benjamin Herrenschmidt wrote: > In various areas (I'll come up with some examples later), kernel code > such as drivers want to defer some processing to "task level", for > various reasons such as locking (taking mutexes), memory allocation, > interrupt latency, or simply doing things that may take more time than > is reasonable to do at interrupt time or do things that may block. > > Currently, the main mechanism we provide to do that is workqueues. They > somewhat solve the problem, but at the same time, somewhat can make it > worse.
Why not just use a dedicated thread? The API to start / stop threads is now pretty easy to use.
-- Intel are signing my paycheques ... these opinions are still mine "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step."
| |