mbox series

[RFC,0/3] request parameter set api and wait termination tuning

Message ID cover.1731205010.git.asml.silence@gmail.com (mailing list archive)
Headers show
Series request parameter set api and wait termination tuning | expand

Message

Pavel Begunkov Nov. 10, 2024, 2:56 p.m. UTC
A crude prototype for probing opinions on the API. Not suitable for
upstream in the current form. Not properly tested either.

Patch 1 adds indirection for new parameters and flags by allowing
the user to register a certain combination of them and requests to
refer to them an index passed in sqe->personality. The use case in
mind is the tuning wake ups and wait loop termination conditions.

Patch 3 is not complete, and I have doubts about the semantics of
Patch 2, but it showcases what/how the series is trying to target.
Note, these are made as hints and can be seamlessly deprecated and
removed from the kernel, in which case the user will get woken up
more often / earlier, which should be tolerated.

Jens Axboe (1):
  io_uring: add support for ignoring inline completions for waits

Pavel Begunkov (2):
  io_uring: introduce request parameter sets
  io_uring: allow waiting loop to ignore some CQEs

 include/linux/io_uring_types.h |  9 ++++
 include/uapi/linux/io_uring.h  | 14 ++++++
 io_uring/io_uring.c            | 91 +++++++++++++++++++++++-----------
 io_uring/msg_ring.c            |  1 +
 io_uring/net.c                 |  1 +
 io_uring/register.c            | 52 +++++++++++++++++++
 6 files changed, 139 insertions(+), 29 deletions(-)