lkml.org 
[lkml]   [2009]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] epoll - send POLLHUP on ->release
On Wed, 3 Jun 2009, Andrew Morton wrote:

> On Wed, 03 Jun 2009 15:20:26 -0400
> Gregory Haskins <ghaskins@novell.com> 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@xmailserver.org>
> > >
> >
> > Tested-by: Gregory Haskins <ghaskins@novell.com>
>
> 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?

Andrew, this is not related to a bug in mainline. It's an helper for
IRQFD, that allows them to not hold reference counts over the underlying
eventfd.
I believe this has been tested using Gregory's IRQFD code.



- Davide




\
 
 \ /
  Last update: 2009-06-03 21:57    [W:0.051 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site