public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V5 0/2] io_uring: uring_cmd: add multishot support with provided buffer
@ 2025-08-21  4:02 Ming Lei
  2025-08-21  4:02 ` [PATCH V5 1/2] io-uring: move `struct io_br_sel` into io_uring_types.h Ming Lei
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Ming Lei @ 2025-08-21  4:02 UTC (permalink / raw)
  To: Jens Axboe, io-uring, Pavel Begunkov; +Cc: Caleb Sander Mateos, Ming Lei

Hi Jens,

This patchset adds multishot support with provided buffer, see details in
commit log of patch 2.

Thanks,
Ming


V5:
- rebase on block/io_uring-buf-list and use 'struct io_br_sel' to build the two APIs
- add patch 1 for moving `struct io_br_sel` to `linux/io_uring_types.h`

V4:
- add io_do_buffer_select() check in io_uring_cmd_select_buffer(()
- comments that the two APIs should work together for committing buffer
  upfront(Jens)

V3:
- enhance buffer select check(Jens)

V2:
- Fixed static inline return type
- Updated UAPI comments: Clarified that IORING_URING_CMD_MULTISHOT must be used with buffer select
- Refactored validation checks: Moved the mutual exclusion checks into the individual flag validation
sections for better code organization
- Added missing req_set_fail(): Added the missing failure handling in io_uring_mshot_cmd_post_cqe
- Improved commit message: Rewrote the commit message to be clearer, more technical, and better explain
the use cases and API changes

Ming Lei (2):
  io-uring: move `struct io_br_sel` into io_uring_types.h
  io_uring: uring_cmd: add multishot support

 include/linux/io_uring/cmd.h   | 27 +++++++++++++
 include/linux/io_uring_types.h | 19 +++++++++
 include/uapi/linux/io_uring.h  |  6 ++-
 io_uring/kbuf.h                | 18 ---------
 io_uring/opdef.c               |  1 +
 io_uring/uring_cmd.c           | 71 +++++++++++++++++++++++++++++++++-
 6 files changed, 122 insertions(+), 20 deletions(-)

-- 
2.47.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-08-22  0:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-21  4:02 [PATCH V5 0/2] io_uring: uring_cmd: add multishot support with provided buffer Ming Lei
2025-08-21  4:02 ` [PATCH V5 1/2] io-uring: move `struct io_br_sel` into io_uring_types.h Ming Lei
2025-08-21  4:02 ` [PATCH V5 2/2] io_uring: uring_cmd: add multishot support Ming Lei
2025-08-21 16:23   ` Caleb Sander Mateos
2025-08-21 16:37     ` Jens Axboe
2025-08-21 16:29   ` Caleb Sander Mateos
2025-08-21 16:38     ` Jens Axboe
2025-08-22  0:52       ` Ming Lei
2025-08-22  0:58         ` Jens Axboe
2025-08-21 11:41 ` [PATCH V5 0/2] io_uring: uring_cmd: add multishot support with provided buffer Jens Axboe
2025-08-21 11:44   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox