From: Pavel Begunkov <asml.silence@gmail.com>
To: Caleb Sander Mateos <csander@purestorage.com>
Cc: io-uring@vger.kernel.org, axboe@kernel.dk
Subject: Re: [PATCH] io_uring/rsrc: replace reg buffer bit field with flags
Date: Tue, 10 Feb 2026 09:51:14 +0000 [thread overview]
Message-ID: <ff0d5185-6837-4144-aa2c-d3e90e539c94@gmail.com> (raw)
In-Reply-To: <CADUfDZqJzVKEnoNWd5F0NAK6oKaUB3beJQ65WfKwmnXcGU5TWg@mail.gmail.com>
On 2/9/26 16:44, Caleb Sander Mateos wrote:
> On Mon, Feb 9, 2026 at 6:33 AM Pavel Begunkov <asml.silence@gmail.com> wrote:
...
>> - if (imu->is_kbuf)
>> + if (imu->flags & IO_REGBUF_F_KBUF)
>> return io_vec_fill_kern_bvec(ddir, iter, imu, iov, nr_iovs, vec);
>>
>> return io_vec_fill_bvec(ddir, iter, imu, iov, nr_iovs, vec);
>> diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h
>> index 4a5db2ad1af2..cff0f8834c35 100644
>> --- a/io_uring/rsrc.h
>> +++ b/io_uring/rsrc.h
>> @@ -28,6 +28,10 @@ enum {
>> IO_IMU_SOURCE = 1 << ITER_SOURCE,
>> };
>>
>> +enum {
>> + IO_REGBUF_F_KBUF = 1,
>
> 1 << 0 if this is intended to be extended with more flag bits in the future?
It's not worth of respinning, will get converted if ever
becomes a problem.
--
Pavel Begunkov
next prev parent reply other threads:[~2026-02-10 9:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 14:31 [PATCH] io_uring/rsrc: replace reg buffer bit field with flags Pavel Begunkov
2026-02-09 16:44 ` Caleb Sander Mateos
2026-02-10 9:51 ` Pavel Begunkov [this message]
2026-02-10 12:26 ` 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=ff0d5185-6837-4144-aa2c-d3e90e539c94@gmail.com \
--to=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