Skip to content

simplify ep_poll

Soheil Hassas Yeganeh linux-fsdevel lkml 1 version Applied

Status from this message: [merged] epoll-eliminate-unnecessary-lock-for-zero-timeout.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 8 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8epoll: check for events when removing a timed out thread from the wait queuefs/eventpoll.c+16 -91 replyApplied
2/8epoll: simplify signal handlingfs/eventpoll.c+10 -100 repliesApplied
3/8epoll: pull fatal signal checks into ep_send_events()fs/eventpoll.c+8 -90 repliesApplied
4/8epoll: move eavail next to the list_empty_careful checkfs/eventpoll.c+1 -20 repliesApplied
5/8epoll: simplify and optimize busy loop logicfs/eventpoll.c+19 -230 repliesApplied
6/8epoll: pull all code between fetch_events and send_event into the loopfs/eventpoll.c+21 -200 repliesApplied
7/8epoll: replace gotos with a proper loopfs/eventpoll.c+21 -210 repliesApplied
8/8epoll: eliminate unnecessary lock for zero timeoutfs/eventpoll.c+12 -130 repliesApplied

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEric DumazetWillem de BruijnKhazhismel KumykovGuantao LiuDavidlohr Bueso
SeriesR-b R-b R-b
1/8R-b R-b R-b T-b R-b
2/8R-b R-b R-b
3/8R-b R-b R-b
4/8R-b R-b R-b
5/8R-b R-b R-b
6/8R-b R-b R-b
7/8R-b R-b R-b
8/8R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 0/8] simplify ep_poll

From: Soheil Hassas Yeganeh <[email protected]>

This patch series is a follow up based on the suggestions and feedback by Linus:
https://lkml.kernel.org/r/CAHk-=wizk=OxUyQPbO8MS41w2Pag1kniUV5WdD5qWL-gq1kjDA@mail.gmail.com

The first patch in the series is a fix for the epoll race in presence of timeouts, so that it can be cleanly backported to all affected stable kernels.

The rest of the patch series simplify the ep_poll() implementation. Some of these simplifications result in minor performance enhancements as well. We have kept these changes under self tests and internal benchmarks for a few days, and there are minor (1-2%) performance enhancements as a result.

Soheil Hassas Yeganeh (8):
epoll: check for events when removing a timed out thread from the wait
queue
epoll: simplify signal handling
epoll: pull fatal signal checks into ep_send_events()
epoll: move eavail next to the list_empty_careful check
epoll: simplify and optimize busy loop logic
epoll: pull all code between fetch_events and send_event into the loop
epoll: replace gotos with a proper loop
epoll: eliminate unnecessary lock for zero timeout

 fs/eventpoll.c | 159 +++++++++++++++++++++++++------------------------
 1 file changed, 80 insertions(+), 79 deletions(-)
Signature · 1 line
2.29.1.341.ge80a0c044ae-goog