From: Ming Lei <ming.lei@redhat.com>
To: Jens Axboe <axboe@kernel.dk>,
io-uring@vger.kernel.org, Pavel Begunkov <asml.silence@gmail.com>
Cc: Caleb Sander Mateos <csander@purestorage.com>,
Ming Lei <ming.lei@redhat.com>
Subject: [PATCH V5 0/2] io_uring: uring_cmd: add multishot support with provided buffer
Date: Thu, 21 Aug 2025 12:02:05 +0800 [thread overview]
Message-ID: <20250821040210.1152145-1-ming.lei@redhat.com> (raw)
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
next reply other threads:[~2025-08-21 4:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-21 4:02 Ming Lei [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250821040210.1152145-1-ming.lei@redhat.com \
--to=ming.lei@redhat.com \
--cc=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=csander@purestorage.com \
--cc=io-uring@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox