From: Nathan Chancellor <nathan@kernel.org>
To: Jens Axboe <axboe@kernel.dk>
Cc: io-uring@vger.kernel.org, csander@purestorage.com,
Keith Busch <kbusch@meta.com>, Keith Busch <kbusch@kernel.org>,
llvm@lists.linux.dev
Subject: Re: [PATCHv6] io_uring: add support for IORING_SETUP_SQE_MIXED
Date: Wed, 22 Oct 2025 14:00:30 +0200 [thread overview]
Message-ID: <20251022120030.GA148714@ax162> (raw)
In-Reply-To: <176108414866.224720.11841089098235254459.b4-ty@kernel.dk>
On Tue, Oct 21, 2025 at 04:02:28PM -0600, Jens Axboe wrote:
>
> On Thu, 16 Oct 2025 11:09:38 -0700, Keith Busch wrote:
> > Normal rings support 64b SQEs for posting submissions, while certain
> > features require the ring to be configured with IORING_SETUP_SQE128, as
> > they need to convey more information per submission. This, in turn,
> > makes ALL the SQEs be 128b in size. This is somewhat wasteful and
> > inefficient, particularly when only certain SQEs need to be of the
> > bigger variant.
> >
> > [...]
>
> Applied, thanks!
>
> [1/1] io_uring: add support for IORING_SETUP_SQE_MIXED
> commit: 31dc41afdef21f264364288a30013b538c46152e
This needs a pretty obvious fix up as clang points out:
io_uring/fdinfo.c:103:22: error: variable 'sqe' is uninitialized when used here [-Werror,-Wuninitialized]
103 | opcode = READ_ONCE(sqe->opcode);
| ^~~
I would have sent a formal patch but since it is at the top, I figured
it would get squashed anyways.
Cheers,
Nathan
diff --git a/io_uring/fdinfo.c b/io_uring/fdinfo.c
index d5aa64203de5..5b26b2a97e1b 100644
--- a/io_uring/fdinfo.c
+++ b/io_uring/fdinfo.c
@@ -100,8 +100,8 @@ static void __io_uring_show_fdinfo(struct io_ring_ctx *ctx, struct seq_file *m)
if (sq_idx > sq_mask)
continue;
- opcode = READ_ONCE(sqe->opcode);
sqe = &ctx->sq_sqes[sq_idx << sq_shift];
+ opcode = READ_ONCE(sqe->opcode);
if (sq_shift) {
sqe128 = true;
} else if (io_issue_defs[opcode].is_128) {
next prev parent reply other threads:[~2025-10-22 12:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-16 18:09 [PATCHv6] io_uring: add support for IORING_SETUP_SQE_MIXED Keith Busch
2025-10-21 22:02 ` Jens Axboe
2025-10-22 12:00 ` Nathan Chancellor [this message]
2025-10-22 13:34 ` Jens Axboe
2025-10-22 13:53 ` Keith Busch
2025-10-22 13:56 ` 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=20251022120030.GA148714@ax162 \
--to=nathan@kernel.org \
--cc=axboe@kernel.dk \
--cc=csander@purestorage.com \
--cc=io-uring@vger.kernel.org \
--cc=kbusch@kernel.org \
--cc=kbusch@meta.com \
--cc=llvm@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.