Skip to content
  • Changli Gao's avatar
    sched, wait: Use wrapper functions · a93d2f17
    Changli Gao authored
    
    
    epoll should not touch flags in wait_queue_t. This patch introduces a new
    function __add_wait_queue_exclusive(), for the users, who use wait queue as a
    LIFO queue.
    
    __add_wait_queue_tail_exclusive() 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: default avatarChangli Gao <xiaosuo@gmail.com>
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Alexander Viro <viro@zeniv.linux.org.uk>
    Cc: Paul Menage <menage@google.com>
    Cc: Li Zefan <lizf@cn.fujitsu.com>
    Cc: Davide Libenzi <davidel@xmailserver.org>
    Cc: <containers@lists.linux-foundation.org>
    LKML-Reference: <1273214006-2979-1-git-send-email-xiaosuo@gmail.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    a93d2f17