Skip to content

RFC dynamic buffers + rsrc tagging

Pavel Begunkov io-uring 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest12 patches 1 replyIn review
  2. v1 RFC11 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12io_uring: move __io_sqe_files_unregisterfs/io_uring.c+27 -270 replies
2/12io_uring: return back rsrc data free helperfs/io_uring.c+7 -20 replies
3/12io_uring: decouple CQE filling from requestsfs/io_uring.c+28 -270 replies
4/12io_uring: preparation for rsrc taggingfs/io_uring.c+30 -40 replies
5/12io_uring: add generic path for rsrc updatefs/io_uring.c+46 -330 replies
6/12io_uring: enumerate dynamic resourcesfs/io_uring.c include/uapi/linux/io_uring.h+12 -80 replies
7/12io_uring: add IORING_REGISTER_RSRCfs/io_uring.c include/uapi/linux/io_uring.h+48 -50 replies
8/12io_uring: add generic rsrc update with tagsfs/io_uring.c include/uapi/linux/io_uring.h+57 -170 replies
9/12io_uring: keep table of pointers to ubufsfs/io_uring.c+19 -160 replies
10/12io_uring: prepare fixed rw for dynanic buffersfs/io_uring.c+29 -100 replies
11/12io_uring: implement fixed buffers registration similar to fixed filesfs/io_uring.c+56 -150 replies
12/12io_uring: add full-fledged dynamic buffers supportfs/io_uring.c include/uapi/linux/io_uring.h+73 -40 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RFC v2 00/12] dynamic buffers + rsrc tagging

1) support dynamic managment for registered buffers, including update.

2) add new IORING_REGISTER* for rsrc register and rsrc update, which are just dispatch files/buffers to right callbacks. Needed because old ones not nicely extendible. The downside -- restrictions not supporting it with fine granularity.

3) add rsrc tagging, with tag=0 ingnoring CQE posting. Doesn't post CQEs on unregister, but can easily be changed

v2: instead of async_data importing for fixed rw, save
used io_mapped_ubuf and use it on re-import. Add patch 9/12 as a preparation for that.

Fix prep rw getting a rsrc node ref for fixed files without having a rsrc node.

Bijan Mottahedeh (1):
io_uring: implement fixed buffers registration similar to fixed files

Pavel Begunkov (11):
io_uring: move __io_sqe_files_unregister
io_uring: return back rsrc data free helper
io_uring: decouple CQE filling from requests
io_uring: preparation for rsrc tagging
io_uring: add generic path for rsrc update
io_uring: enumerate dynamic resources
io_uring: add IORING_REGISTER_RSRC
io_uring: add generic rsrc update with tags
io_uring: keep table of pointers to ubufs
io_uring: prepare fixed rw for dynanic buffers
io_uring: add full-fledged dynamic buffers support

 fs/io_uring.c                 | 523 +++++++++++++++++++++++++---------
 include/uapi/linux/io_uring.h |  23 ++
 2 files changed, 405 insertions(+), 141 deletions(-)
Signature · 1 line
2.31.1