Re: [PATCH] poll: prevent missed events if _qproc is NULL

2013-01-01 Thread Junchang(Jason) Wang
Hi all, The alternate patch from Eric works well too. Even though I didn't see a performance boost compared with the old version, this one is clearer to me. Thanks your guys. Cheers! --Jason On Tue, Jan 1, 2013 at 5:53 PM, Linus Torvalds wrote: > On Tue, Jan 1, 2013 at 1:17 PM, Eric Wong wr

Re: [PATCH] poll: prevent missed events if _qproc is NULL

2013-01-01 Thread Junchang(Jason) Wang
Hi Eric and list, Thanks a lot. The patch solves our (Andreas and my) issue in using epoll. Here's our test program https://github.com/AndreasVoellmy/epollbug/blob/master/epollbug.c We are using Linux 3.7.1 and a server with 80 cores. Cheers! --Jason On Mon, Dec 31, 2012 at 6:24 PM, Eric Wong

Re: epoll with ONESHOT possibly fails to deliver events

2012-12-20 Thread Junchang(Jason) Wang
On Thu, Dec 20, 2012 at 4:32 PM, Eric Wong wrote: > Andreas Voellmy wrote: >> I wrote a C program that behaves similar to my original program and >> triggers the bug. The bug only arises when I use enough cores and >> threads (about 16). The program is here: >> https://github.com/AndreasVoellmy/e