Re: [patch] epoll - send POLLHUP on ->release

From: Andrew Morton
Date: Wed Jun 03 2009 - 15:27:51 EST


On Wed, 03 Jun 2009 15:20:26 -0400
Gregory Haskins <ghaskins@xxxxxxxxxx> wrote:

> Davide Libenzi wrote:
> > The following patch allows waiters to be notified about the eventfd file*
> > going away, and give them a change to unregister from the wait queue.
> > This is turn allows eventfd users to use the eventfd file* w/out
> > holding a live reference to it.
> > After the eventfd user callbacks returns, any usage of the eventfd file*
> > should be dropped. The eventfd user callback can acquire sleepy locks
> > since it is invoked lockless.
> >
> >
> >
> > Signed-off-by: Davide Libenzi <davidel@xxxxxxxxxxxxxxx>
> >
>
> Tested-by: Gregory Haskins <ghaskins@xxxxxxxxxx>

Confused. Did you test this with some new kernel patch, or with some
existing kernel code?

If the latter, what code are we talking about here and what was the test
case and what went wrong when using the current mainline
implementation?

--
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/