diff -ur linux-2.5.46.orig/fs/eventpoll.c linux-2.5.46/fs/eventpoll.c --- linux-2.5.46.orig/fs/eventpoll.c Thu Nov 7 14:31:21 2002 +++ linux-2.5.46/fs/eventpoll.c Thu Nov 7 14:32:16 2002 @@ -838,8 +838,13 @@ list_add(&dpi->llink, ep_hash_entry(ep, ep_hash_index(ep, tfile))); /* If the file is already "ready" we drop it inside the ready list */ - if ((revents & pfd->events) && !EP_IS_LINKED(&dpi->rdllink)) + if ((revents & pfd->events) && !EP_IS_LINKED(&dpi->rdllink)) { list_add(&dpi->rdllink, &ep->rdllist); + if (waitqueue_active(&ep->wq)) + wake_up(&ep->wq); + if (waitqueue_active(&ep->poll_wait)) + wake_up(&ep->poll_wait); + } write_unlock_irqrestore(&ep->lock, flags);