1-5 are clean ups, can be considered separately. 6 optimises the final atomic_dec() in __io_arm_poll_handler(). Jens measured almost the same patch imrpoving some of the tests (netbench?) by ~1-1.5%. v2: fix inverted EPOLLET check Pavel Begunkov (6): io_uring: clean poll ->private flagging io_uring: remove events caching atavisms io_uring: add a helper for apoll alloc io_uring: change arm poll return values io_uring: refactor poll arm error handling io_uring: optimise submission side poll_refs io_uring/poll.c | 213 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 142 insertions(+), 71 deletions(-) -- 2.36.1