Re: [RFC PATCH v3 5/6] io_uring/cmd: allow reusing SQE storage for completion data
From: Yingjie Wang
Date: Wed Nov 18 2026 - 03:34:08 EST
Hi Yang,
On Wed, 11 Nov 2026, Yang Xiuwei wrote:
> Not the request or the tag. A buffer owned by bsg, freed from task
> work after the copy. Per-file or per-queue both work.
Thanks, that is simpler. I'm dropping this patch; I've reworked the bsg
side to use a per-file completion buffer pool, allocated at open(),
with -EAGAIN on exhaustion. This avoids allocating completion buffers
or waiting for a free one in the I/O path. A per-file pool keeps one
opener from exhausting the completion buffers available to other
openers.
Jens, Pavel: this patch is withdrawn, so it needs no ruling from the
io_uring side.
Patches 1-4 of this series will be posted on their own, and the
reworked bsg patches as a separate v4.
Thanks,
Yingjie