The patch titled Subject: fs-epoll-reduce-the-scope-of-wq-lock-in-epoll_wait-fix has been added to the -mm tree. Its filename is fs-epoll-reduce-the-scope-of-wq-lock-in-epoll_wait-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/fs-epoll-reduce-the-scope-of-wq-lock-in-epoll_wait-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/fs-epoll-reduce-the-scope-of-wq-lock-in-epoll_wait-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Davidlohr Bueso <dave@xxxxxxxxxxxx> Subject: fs-epoll-reduce-the-scope-of-wq-lock-in-epoll_wait-fix Sorry, I just realized I forgot these fixlets when sending the v1. Link: http://lkml.kernel.org/r/20181109155258.jxcr4t2pnz6zqct3@linux-r8p5 Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Davidlohr Bueso <dbueso@xxxxxxx> Cc: Jason Baron <jbaron@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/eventpoll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/eventpoll.c~fs-epoll-reduce-the-scope-of-wq-lock-in-epoll_wait-fix +++ a/fs/eventpoll.c @@ -381,7 +381,7 @@ static void ep_nested_calls_init(struct */ static inline int ep_events_available(struct eventpoll *ep) { - return !list_empty(&ep->rdllist) || + return !list_empty_careful(&ep->rdllist) || READ_ONCE(ep->ovflist) != EP_UNACTIVE_PTR; } _ Patches currently in -mm which might be from dave@xxxxxxxxxxxx are fs-epoll-remove-max_nests-argument-from-ep_call_nested.patch fs-epoll-simplify-ep_send_events_proc-ready-list-loop.patch fs-epoll-drop-ovflist-branch-prediction.patch fs-epoll-robustify-ep-mtx-held-checks.patch fs-epoll-reduce-the-scope-of-wq-lock-in-epoll_wait.patch fs-epoll-reduce-the-scope-of-wq-lock-in-epoll_wait-fix.patch fs-epoll-avoid-barrier-after-an-epoll_wait2-timeout.patch fs-epoll-avoid-barrier-after-an-epoll_wait2-timeout-fix.patch