Messages in this thread | ![/](/images/icornerl.gif) | | From | Changli Gao <> | Date | Wed, 28 Apr 2010 23:33:37 +0800 | Subject | Re: [RFC] sched: implement the exclusive wait queue as a LIFO queue |
| |
On Wed, Apr 28, 2010 at 11:00 PM, David Howells <dhowells@redhat.com> wrote: > > But is it actually used in both modes at the same time? >
It should be seldom in good applications. So I only need to add a function, like this:
add_wait_queue_head_exclusive(wq, wait) first_exclusive = find_the_first_exclusive(wq); // it is fast, as there should no or few non-exclusive wait queues list_add(wait, first_exclusive);
-- Regards, Changli Gao(xiaosuo@gmail.com) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |