Re: [RFC,PATCH] use rcu for fasync_lock

Davide Libenzi
2003-12-21T15:17:57Z

On Sun, 21 Dec 2003, Davide Libenzi wrote:

> On Sun, 21 Dec 2003, Manfred Spraul wrote:
>
> > >What about killing fasync_helper altogether and using the method that
> > >epoll uses to register "listeners" which send a signal when the poll
> > >state of a device changes?
> > >
> > I think it would be a step in the wrong direction: poll should go away
> > from a simple wake-up to an interface that transfers the band info
> > (POLL_IN, POLL_OUT, etc). Right now at least two passes over the f_poll
> > functions are necessary, because the info which event actually triggered
> > is lost. kill_fasync transfers the band info, thus I don't want to
> > remove it.
>
> It is my plan to propose (Linus is not contrary, in principle) a change of
> the poll/wake infrastructure for 2.7. There are two areas that can be
> improved. First, f_op->poll() does not allow you to send and event mask,

Sorry, poll_wait() does not allow you to specify an event mask ...

- Davide