Re: [PATCH] epoll: preserve ordering of events from ovflist

2013-03-03 Thread Eric Wong
Eric Wong wrote: > Events arriving in ovflist are stored in LIFO order, so > we should account for that when inserting them into rddlist. Fwiw, I noticed this oddity because I wanted to start tracing epitem readiness (to detect when my application is not calling epoll_wait() fast enough). I have

[PATCH] epoll: preserve ordering of events from ovflist

2013-03-01 Thread Eric Wong
Events arriving in ovflist are stored in LIFO order, so we should account for that when inserting them into rddlist. Signed-off-by: Eric Wong Cc: Davide Libenzi Cc: Al Viro Cc: Andrew Morton --- I think this can lead to starvation in some rare cases, but I have not been able to trigger it.