public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCHv2 0/1]
@ 2025-09-04 19:27 Keith Busch
  2025-09-04 19:27 ` [RFC PATCHv2 1/3] Add support IORING_SETUP_SQE_MIXED Keith Busch
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Keith Busch @ 2025-09-04 19:27 UTC (permalink / raw)
  To: io-uring, axboe, csander; +Cc: Keith Busch

From: Keith Busch <kbusch@kernel.org>

The CQ supports mixed size entries, so why not do it for SQ's too? There
are use cases that currently allocate different queues just to keep
these things separated, but we can efficiently handle both cases in a
single ring.

This RFC is taking the last SQE flags bit for the purpose. That might
not be okay, but serves as a proof of concept for an initial look.

Changes from v1:

  - Fixed up the kernel's handling for big SQEs on a mixed SQ for
    uring_cmd and fdinfo

  - Added liburing tests for nvme uring_cmd usage and inserting a 128b
    SQE in the last entry to test the kernel's handling for a bad wrap.

kernel:

Keith Busch (1):
  io_uring: add support for IORING_SETUP_SQE_MIXED

 include/linux/io_uring_types.h |  3 +++
 include/uapi/linux/io_uring.h  |  9 +++++++++
 io_uring/fdinfo.c              | 32 +++++++++++++++++++++++++-------
 io_uring/io_uring.c            | 20 +++++++++++++++++++-
 io_uring/register.c            |  2 +-
 io_uring/uring_cmd.c           |  4 +++-
 6 files changed, 60 insertions(+), 10 deletions(-)

liburing:

Keith Busch (3):
  Add support IORING_SETUP_SQE_MIXED
  Add nop testing for IORING_SETUP_SQE_MIXED
  Add mixed sqe test for uring commands

 src/include/liburing.h          |  31 ++++++++
 src/include/liburing/io_uring.h |   9 +++
 test/Makefile                   |   3 +
 test/sqe-mixed-bad-wrap.c       | 121 +++++++++++++++++++++++++++++
 test/sqe-mixed-nop.c            | 104 +++++++++++++++++++++++++
 test/sqe-mixed-uring_cmd.c      | 168 +++++++++++++++++++++++++++++++++++++++++
 6 files changed, 436 insertions(+)

-- 
2.47.3


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

end of thread, other threads:[~2025-09-18 23:35 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-04 19:27 [RFC PATCHv2 0/1] Keith Busch
2025-09-04 19:27 ` [RFC PATCHv2 1/3] Add support IORING_SETUP_SQE_MIXED Keith Busch
2025-09-11 16:27   ` Caleb Sander Mateos
2025-09-04 19:27 ` [RFC PATCHv2 1/1] io_uring: add support for IORING_SETUP_SQE_MIXED Keith Busch
2025-09-10 17:44   ` Caleb Sander Mateos
2025-09-11  0:28     ` Jens Axboe
2025-09-11  2:11       ` Ming Lei
2025-09-11  2:19         ` Ming Lei
2025-09-11 13:02           ` Keith Busch
2025-09-11 13:07             ` Ming Lei
2025-09-17 14:44               ` Jens Axboe
2025-09-18 21:22                 ` Keith Busch
2025-09-18 23:35                   ` Jens Axboe
2025-09-11  2:06     ` Keith Busch
2025-09-04 19:27 ` [RFC PATCHv2 2/3] Add nop testing " Keith Busch
2025-09-04 19:27 ` [RFC PATCHv2 3/3] Add mixed sqe test for uring commands Keith Busch

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