Skip to content

Add support for ring resizing

Jens Axboe io-uring 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v34 patches 9 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC3 patches2 repliesSuperseded

Changes in v4 from the cover letter

- Add ctx->resize_lock, which is held across both mmap and ring resize operations. This prevents anyone else from running mmap at the same time as a resize, even if they are a different mm
- Expand test cases to test the different mm situation

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4io_uring: move max entry definition and ring sizing into headerio_uring/io_uring.c io_uring/io_uring.h+11 -80 replies
2/4io_uring: abstract out a bit of the ring filling logicio_uring/io_uring.c io_uring/io_uring.h+41 -300 replies
3/4io_uring/memmap: explicitly return -EFAULT for mmap on NULL ringsio_uring/memmap.c+4 -00 replies
4/4io_uring/register: add IORING_REGISTER_RESIZE_RINGSinclude/linux/io_uring_types.h include/uapi/linux/io_uring.h io_uring/io_uring.c +2 more+234 -00 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCHSET v4 0/4] Add support for ring resizing

Hi,

Here's v4 of the ring resizing support. For the v1 posting and details, look here:

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

 include/linux/io_uring_types.h |   7 ++
 include/uapi/linux/io_uring.h  |   3 +
 io_uring/io_uring.c            |  85 +++++++------
 io_uring/io_uring.h            |   6 +
 io_uring/memmap.c              |  12 ++
 io_uring/register.c            | 215 +++++++++++++++++++++++++++++++++
 6 files changed, 290 insertions(+), 38 deletions(-)

Changes since v3
- Add ctx->resize_lock, which is held across both mmap and ring resize operations. This prevents anyone else from running mmap at the same time as a resize, even if they are a different mm
- Expand test cases to test the different mm situation

Signature · 1 line
Jens Axboe