[lkml]   [2002]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] 2.5.46: epoll ep_insert doesn't wake waiters if events exist
On Thu, 7 Nov 2002, Jay Vosburgh wrote:

> The logic in fs/eventpoll.c:ep_insert() checks to see if events are
> already present when processing an EP_CTL_ADD operation, and, if any are,
> adds them to the list. It does not wake up any waiters, so, e.g., another
> thread waiting in epoll_wait() will not be awakened for these events. The
> fix is to have ep_insert() do wakeups, just as ep_poll_callback() does when
> it adds events.

Matthew Kirk already made me notice this yesterday and it's in my code ( 0.37 ).
I was ashame to make another post to Linus :) so I delayed the post.
Linus, I have a few bits. Let me know if you want them now or we will
delay to 2.5.47 ...

- Davide

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:30    [W:0.043 / U:1.524 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site