Messages in this thread | | | From | David Howells <> | Subject | Re: [RFC] sched: implement the exclusive wait queue as a LIFO queue | Date | Wed, 28 Apr 2010 14:21:02 +0100 |
| |
Changli Gao <xiaosuo@gmail.com> wrote:
> You are right. I made the wrong assumption. But we indeed need some > primitive to add wait_queue at the head of the wait_queue_head, and I > know epoll needs it, at least. > > fs/eventpoll.c: 1443. > wait.flags |= WQ_FLAG_EXCLUSIVE; > __add_wait_queue(&ep->wq, &wait);
You can add at either end of the wait queue with __add_wait_queue() and __add_wait_queue_tail().
David
| |