Re: Unexpected cascaded epoll behavior - my mistake or kernel bug

From: Davide Libenzi
Date: Mon Jan 26 2009 - 14:55:07 EST


On Mon, 26 Jan 2009, Pavel Pisa wrote:

> Hello Davide,
>
> thanks for fast reply and effort.
>
> I have tested your patch with patched and unpatched 2.6.28.2 kernel.
> The outputs are attached. The patched kernel passes all your tests.
>
> But I have bad news. My library code does not fall into busy loop
> after your patching but my FIFO tests do not work even in
> single level epoll scenario. The strace output is attached as well.
> I try to do more testing tomorrow. I have returned from weekend trip
> at the evening today and I have not much time for deeper analysis.
>
> But it looks like write level sensitive events are not triggering
> for epoll at all. The pipe is not fill by any character and specified
> timeout is triggered with next message as fail results.
> @ pipe #X evptrig wr timeout
> @ pipe #X evptrig rd timeout
>
> If you want to test the code on your box, download library
>
> http://cmp.felk.cvut.cz/~pisa/ulan/ul_evpoll-090123.tar.gz
>
> The simple "make" in the top directory should work.

It'd be really great if you could spare me having to dig into few
thousands lines of userspace library code, and you could isolate a little
bit better what is the expected result, and the error result.



- Davide


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/