public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH v2 0/4] clodkid and abs mode CQ wait timeouts
@ 2024-08-07 14:18 Pavel Begunkov
  2024-08-07 14:18 ` [PATCH v2 1/4] io_uring/napi: refactor __io_napi_busy_loop() Pavel Begunkov
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Pavel Begunkov @ 2024-08-07 14:18 UTC (permalink / raw)
  To: io-uring; +Cc: Jens Axboe, asml.silence, Lewis Baker

Patch 3 allows the user to pass IORING_ENTER_ABS_TIMER while waiting
for completions, which makes the kernel to interpret the passed timespec
not as a relative time to wait but rather an absolute timeout.

Patch 4 adds a way to set a clock id to use for CQ waiting.

Tests: https://github.com/isilence/liburing.git abs-timeout

v2: Add clock id registration
    Adjustment using iowq->timeout in Patch 2

Pavel Begunkov (4):
  io_uring/napi: refactor __io_napi_busy_loop()
  io_uring/napi: postpone napi timeout adjustment
  io_uring: add absolute mode wait timeouts
  io_uring: user registered clockid for wait timeouts

 include/linux/io_uring_types.h |  3 +++
 include/uapi/linux/io_uring.h  |  8 ++++++++
 io_uring/io_uring.c            | 22 ++++++++++++---------
 io_uring/io_uring.h            |  8 ++++++++
 io_uring/napi.c                | 35 +++++++++++-----------------------
 io_uring/napi.h                | 16 ----------------
 io_uring/register.c            | 31 ++++++++++++++++++++++++++++++
 7 files changed, 74 insertions(+), 49 deletions(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-08-13  3:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-07 14:18 [PATCH v2 0/4] clodkid and abs mode CQ wait timeouts Pavel Begunkov
2024-08-07 14:18 ` [PATCH v2 1/4] io_uring/napi: refactor __io_napi_busy_loop() Pavel Begunkov
2024-08-07 14:18 ` [PATCH v2 2/4] io_uring/napi: postpone napi timeout adjustment Pavel Begunkov
2024-08-07 14:18 ` [PATCH v2 3/4] io_uring: add absolute mode wait timeouts Pavel Begunkov
2024-08-07 14:18 ` [PATCH v2 4/4] io_uring: user registered clockid for " Pavel Begunkov
2024-08-12 18:13 ` [PATCH v2 0/4] clodkid and abs mode CQ " Jens Axboe
2024-08-12 18:30   ` Jens Axboe
2024-08-13  0:50     ` Pavel Begunkov
2024-08-13  0:59       ` Jens Axboe
2024-08-13  1:32         ` Pavel Begunkov
2024-08-13  2:09           ` Jens Axboe
2024-08-13  2:38             ` Pavel Begunkov
2024-08-13  3:28               ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox