mbox series

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

Message ID 20241025140502.167623-2-axboe@kernel.dk (mailing list archive)
Headers show
Series Add support for ring resizing | expand

Message

Jens Axboe Oct. 25, 2024, 2:02 p.m. UTC
Hi,

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

https://lore.kernel.org/io-uring/20241022021159.820925-1-axboe@kernel.dk/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