Re: [PATCH v2] wait: use wrapper functions

From: Peter Zijlstra
Date: Fri May 07 2010 - 06:12:26 EST


On Fri, 2010-05-07 at 14:33 +0800, Changli Gao wrote:
> use wrapper functions
>
> epoll should not touch flags in wait_queue_t. This patch introduces a new
> function __add_wait_queue_excl(), for the users, who use wait queue as a
> LIFO queue.
>
> __add_wait_queue_tail_excl() is introduced too instead of
> add_wait_queue_exclusive_locked(). remove_wait_queue_locked() is removed, as
> it is a duplicate of __remove_wait_queue(), disliked by users, and with less
> users.
>
> Signed-off-by: Changli Gao <xiaosuo@xxxxxxxxx>

Looks good to me. I can feed it to Ingo if he doesn't pick it up
himself.



--
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/