Skip to content

Cleanup io_buffer_list and mmap handling

Jens Axboe io-uring stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4io_uring/kbuf: get rid of lower BGID listsinclude/linux/io_uring_types.h io_uring/io_uring.c io_uring/kbuf.c+8 -650 replies
2/4io_uring/kbuf: get rid of bl->is_readyio_uring/kbuf.c io_uring/kbuf.h+0 -100 replies
3/4io_uring/kbuf: protect io_buffer_list teardown with a referenceio_uring/kbuf.c io_uring/kbuf.h+13 -40 replies
4/4io_uring/kbuf: hold io_buffer_list reference over mmapio_uring/io_uring.c io_uring/kbuf.c io_uring/kbuf.h+36 -140 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCHSET 0/4] Cleanup io_buffer_list and mmap handling

Hi,

This series was previously part of the ring map series targeted for 6.10, where remap_pfn_range() was replaced by vm_insert_pages(). But I think it can stand on its own and has real fixes in it too and should go in sooner, so sending it out separately.

Series basically gets rid of the split we have between how lists are stored depending on their buffer group ID, and stores everything in an xarray to remove the distinction between the two. With that, we can drop the io_buffer_list->is_ready as well. Then it adds a separate reference for the io_buffer_list, and uses that to tighten down how mmap buffer rings are handled.

The resulting code is simpler and easier to follow, and drops more code than it adds.

 include/linux/io_uring_types.h |   1 -
 io_uring/io_uring.c            |  13 ++--
 io_uring/kbuf.c                | 118 ++++++++++++---------------------
 io_uring/kbuf.h                |   8 ++-
 4 files changed, 52 insertions(+), 88 deletions(-)
Signature · 1 line
Jens Axboe