X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Feventpoll.c;h=1e596e1d0bba8c2fab0e82632c56aa7dd2386726;hb=93bb533a340bde2065ecdd8694c8d1852537edd2;hp=73138ea6834252acce735346ff4235ae989525c5;hpb=0c01a4c4ca5b2b06bdc5f633b943eea5fe4f390e;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); }