Re: [PATCH] io_uring/register: preserve SQ array entries on resize
From: Jens Axboe
Date: Tue Jun 16 2026 - 12:23:20 EST
On Mon, 08 Jun 2026 21:33:16 +0800, guzebing wrote:
> Ring resizing copies pending SQEs from the old SQE array into the new
> one so submissions queued before the resize can still be consumed
> afterwards.
>
> That copy currently walks the SQ head/tail range directly. This is only
> correct when there is no SQ array indirection. With a regular SQ array,
> each pending SQ entry contains an index into the SQE array. After resize,
> ctx->sq_array is repointed at the newly allocated array, so pending
> entries lose their old logical-to-physical mapping and may submit the
> wrong SQE.
>
> [...]
Applied, thanks!
[1/1] io_uring/register: preserve SQ array entries on resize
commit: 1fe703cc708f19209ae8e6261247483db723c221
Best regards,
--
Jens Axboe