Skip to content

Add support for batched min timeout

Jens Axboe io-uring 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 10 repliesIn review
  2. v45 patches 21 repliesSuperseded
  3. v35 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches0 repliesSuperseded
v14 patches0 repliesSuperseded

Changes in v5 from the cover letter

- Use READ/WRITE_ONCE consistently with iowq->hit_timeout
- Unify how io_cqring_timer_wakeup() handles ring types by always using wake_up_process().
- Fix race in min timer wakeup with DEFER_TASKRUN
- Don't reset ctx->cq_wait_nr if timeout has been hit

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5io_uring: encapsulate extraneous wait flags into a separate structio_uring/io_uring.c+24 -210 replies
2/5io_uring: move schedule wait logic into helperio_uring/io_uring.c+21 -160 replies
3/5io_uring: implement our own schedule timeout handlingio_uring/io_uring.c io_uring/io_uring.h+34 -52 replies
4/5io_uring: add support for batch wait timeoutio_uring/io_uring.c io_uring/io_uring.h+77 -138 replies
5/5io_uring: wire up min batch wake timeoutinclude/uapi/linux/io_uring.h io_uring/io_uring.c+6 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCHSET v5 0/5] Add support for batched min timeout

Hi,

Here's v5 of the min-wait patchset. For a full description, see the v2 posting:

https://lore.kernel.org/io-uring/[email protected]/

As before, there's a liburing branch with added test cases, it can be found here:

https://git.kernel.dk/cgit/liburing/log/?h=min-wait

The patches are on top of master with for-6.12/io_uring pulled in.

Changes since v4:
- Use READ/WRITE_ONCE consistently with iowq->hit_timeout
- Unify how io_cqring_timer_wakeup() handles ring types by always using wake_up_process().
- Fix race in min timer wakeup with DEFER_TASKRUN
- Don't reset ctx->cq_wait_nr if timeout has been hit

 include/uapi/linux/io_uring.h |   3 +-
 io_uring/io_uring.c           | 191 +++++++++++++++++++++++++---------
 io_uring/io_uring.h           |   4 +
 3 files changed, 150 insertions(+), 48 deletions(-)
Signature · 1 line
Jens Axboe