From: Pavel Begunkov <asml.silence@gmail.com>
To: Jens Axboe <axboe@kernel.dk>, io-uring@vger.kernel.org
Subject: Re: [PATCH liburing 0/2] Add support for IORING_SETUP_SQ_REWIND
Date: Sat, 24 Jan 2026 16:37:43 +0000 [thread overview]
Message-ID: <e3352f58-071c-447a-922d-85262d0c86e4@gmail.com> (raw)
In-Reply-To: <30ee2371-f82f-4b29-9276-71b8cc12b87d@kernel.dk>
On 1/24/26 15:12, Jens Axboe wrote:
> On 1/24/26 3:44 AM, Pavel Begunkov wrote:
...
>>>> The head should already be zero. Actually, sounds like the get_sqe
>>>> hunk from the patch is not needed either.
>>>
>>> Yeah agree, I think they are both false alarms. Might warrant a comment
>>> though. Or maybe we just fold it into io_uring_load_sq_head()?
>>
>> What I'm implying is that the
>>
>> + if (!(ring->flags & IORING_SETUP_SQ_REWIND))
>> + head = io_uring_load_sq_head(ring);
>> +
>>
>> change from the original patch for normal 64B _io_uring_get_sqe()
>> doesn't seem to be necessary. I need to take a look, but that's
>> a good thing since the function is somewhat frequently called and
>> inlined.
>>
>> That would leave __io_uring_flush_sq() to be the only place
>> checking the flag, so maybe comments would better to be put
>> there.
>
> If you have time, would you mind checking the current repo and sending a
> patch? Looks like I messed up a bit and committed some of these bits
> with:
I'll take a look a bit later, but removing should be fine
unless liburing overwrites the sq head.
--
Pavel Begunkov
prev parent reply other threads:[~2026-01-24 16:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-21 22:23 [PATCH liburing 0/2] Add support for IORING_SETUP_SQ_REWIND Pavel Begunkov
2026-01-21 22:23 ` [PATCH liburing 1/2] src/queue: Add support for non circular SQ Pavel Begunkov
2026-01-21 22:23 ` [PATCH liburing 2/2] tests: add SETUP_SQ_REWIND tests Pavel Begunkov
2026-01-22 22:59 ` [PATCH liburing 0/2] Add support for IORING_SETUP_SQ_REWIND Jens Axboe
2026-01-22 23:05 ` Jens Axboe
2026-01-23 14:14 ` Pavel Begunkov
2026-01-23 19:04 ` Jens Axboe
2026-01-24 10:44 ` Pavel Begunkov
2026-01-24 15:12 ` Jens Axboe
2026-01-24 16:37 ` Pavel Begunkov [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=e3352f58-071c-447a-922d-85262d0c86e4@gmail.com \
--to=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--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