[take8 2/2] kevent: poll/select() notifications. Timer notifications.

2006-08-13 Thread Evgeniy Polyakov
poll/select() notifications. Timer notifications. This patch includes generic poll/select and timer notifications. kevent_poll works simialr to epoll and has the same issues (callback is invoked not from internal state machine of the caller, but through process awake). Timer notifications can b

Re: [take8 2/2] kevent: poll/select() notifications. Timer notifications.

2006-08-12 Thread Evgeniy Polyakov
On Sat, Aug 12, 2006 at 01:38:35AM -0700, Andrew Morton ([EMAIL PROTECTED]) wrote: > On Sat, 12 Aug 2006 12:18:35 +0400 > Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > > > On Fri, Aug 11, 2006 at 08:45:31AM -0700, Andrew Morton ([EMAIL PROTECTED]) > > wrote: > > > > +static struct lock_class_key

Re: [take8 2/2] kevent: poll/select() notifications. Timer notifications.

2006-08-12 Thread Andrew Morton
On Sat, 12 Aug 2006 12:18:35 +0400 Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > On Fri, Aug 11, 2006 at 08:45:31AM -0700, Andrew Morton ([EMAIL PROTECTED]) > wrote: > > > +static struct lock_class_key kevent_poll_key; > > > + > > > +void kevent_poll_reinit(struct file *file) > > > +{ > > > + loc

Re: [take8 2/2] kevent: poll/select() notifications. Timer notifications.

2006-08-12 Thread Evgeniy Polyakov
On Fri, Aug 11, 2006 at 08:45:31AM -0700, Andrew Morton ([EMAIL PROTECTED]) wrote: > > +static struct lock_class_key kevent_poll_key; > > + > > +void kevent_poll_reinit(struct file *file) > > +{ > > + lockdep_set_class(&file->st.lock, &kevent_poll_key); > > +} > > Why is this necessary? Locks

Re: [take8 2/2] kevent: poll/select() notifications. Timer notifications.

2006-08-11 Thread Andrew Morton
On Fri, 11 Aug 2006 12:40:10 +0400 Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > > poll/select() notifications. Timer notifications. > > This patch includes generic poll/select and timer notifications. > > kevent_poll works simialr to epoll and has the same issues (callback > is invoked not fro

[take8 2/2] kevent: poll/select() notifications. Timer notifications.

2006-08-11 Thread Evgeniy Polyakov
poll/select() notifications. Timer notifications. This patch includes generic poll/select and timer notifications. kevent_poll works simialr to epoll and has the same issues (callback is invoked not from internal state machine of the caller, but through process awake). Timer notifications can b