X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Feventpoll.c;h=1e596e1d0bba8c2fab0e82632c56aa7dd2386726;hb=1b98ed0e83577bc03515f498a5de342f7dbf0b47;hp=73138ea6834252acce735346ff4235ae989525c5;hpb=7b9df264f0ab6595eabe367b04c81824a06d9227;p=linux-2.6-microblaze.git diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 73138ea68342..1e596e1d0bba 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -657,6 +657,12 @@ static void ep_done_scan(struct eventpoll *ep, */ list_splice(txlist, &ep->rdllist); __pm_relax(ep->ws); + + if (!list_empty(&ep->rdllist)) { + if (waitqueue_active(&ep->wq)) + wake_up(&ep->wq); + } + write_unlock_irq(&ep->lock); }