Message ID | 20210508225319.NKQs9i8ok%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] fs-epoll-restore-waking-from-ep_done_scan.patch removed from -mm tree | expand |
--- a/fs/eventpoll.c~fs-epoll-restore-waking-from-ep_done_scan +++ a/fs/eventpoll.c @@ -657,6 +657,12 @@ static void ep_done_scan(struct eventpol */ 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); }