Re: [PATCH] io_uring/register: preserve SQ array entries on resize

Jens Axboe <[email protected]>
Newsgroups org.kernel.vger.io-uring,org.kernel.vger.linux-kernel
Message-ID <178162611649.2191657.14070998514588053092.b4-ty@b4>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.