On Wed, Apr 28, 2010 at 11:00 PM, David Howells <dhowells@xxxxxxxxxx> 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@xxxxxxxxx) -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html