author: Davidlohr Bueso <dave@stgolabs.net> 2021-05-06 18:04:07 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-05-06 19:24:13 -0700
commit: 7fab29e356309ff93a4b30ecc466129682ec190b
parent: 1e3b918d1dd18bcea3df9339c2d8910ffa95686a
Commit Summary:
Diffstat:
1 file changed, 5 insertions, 0 deletions
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);
}