Re: [RFC PATCH v3 5/6] io_uring/cmd: allow reusing SQE storage for completion data

From: Yang Xiuwei

Date: Tue Nov 10 2026 - 19:38:04 EST


Hi Yingjie,

On Tue, 10 Nov 2026 at 12:24, Yingjie Wang wrote:
> Which object did you have in mind for the buffer? With 6/6, end-I/O
> frees the request, and the tag can be reused before task work copies
> the sense data.

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.

> Queue depth alone also does not bound the number of completed
> commands waiting for task work once their tags have been released.

Agreed. If the pool is empty, return -EAGAIN. Do not sleep on it.

Thanks,
Yang Xiuwei