public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: io-uring@vger.kernel.org, Pavel Begunkov <asml.silence@gmail.com>
Subject: Re: [PATCH 1/1] io_uring/query: buffer size calculations with a union
Date: Sat, 08 Nov 2025 06:40:13 -0700	[thread overview]
Message-ID: <176260921306.52069.7107119231471996539.b4-ty@kernel.dk> (raw)
In-Reply-To: <669d1e9701194fe86c69d12bb629b21242adaec7.1762432299.git.asml.silence@gmail.com>


On Thu, 06 Nov 2025 12:31:56 +0000, Pavel Begunkov wrote:
> Instead of having an array of a calculated size as a buffer, put all
> query uapi structures into a union and pass that around. That way
> everything is well typed, and the compiler will prevent opcode handling
> using a structure not accounted into the buffer size.
> 
> 

Applied, thanks!

[1/1] io_uring/query: buffer size calculations with a union
      commit: 20c1da7ee5cb181fd67488c91856233d9c41d3c6

Best regards,
-- 
Jens Axboe




      reply	other threads:[~2025-11-08 13:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-06 12:31 [PATCH 1/1] io_uring/query: buffer size calculations with a union Pavel Begunkov
2025-11-08 13:40 ` Jens Axboe [this message]

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=176260921306.52069.7107119231471996539.b4-ty@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=asml.silence@gmail.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