On Wed, Feb 26, 2025 at 10:10:31AM -0700, Keith Busch wrote: > On Wed, Feb 26, 2025 at 04:15:39PM +0800, Ming Lei wrote: > > On Mon, Feb 24, 2025 at 01:31:14PM -0800, Keith Busch wrote: > > > From: Keith Busch <kbusch@xxxxxxxxxx> > > > > > > Provide new operations for the user to request mapping an active request > > > to an io uring instance's buf_table. The user has to provide the index > > > it wants to install the buffer. > > > > > > A reference count is taken on the request to ensure it can't be > > > completed while it is active in a ring's buf_table. > > > > > > Signed-off-by: Keith Busch <kbusch@xxxxxxxxxx> > > > --- > > > > Looks IO_LINK doesn't work, and UNREG_BUF cqe can be received from userspace. > > You can link the register, but should do the unregister with COMMIT > command on the frontend when the backend is complete. This doesn't need > the triple SQE requirement. > > I was going to share with the next version, but since you bring it up > now, here's the reference patch for ublksrv using links: Forget to reply in this thread, IO_LINK works well in ktests V2 after fixing one out-of-sqe issue, which is mentioned in the V2 cover-letter. Thanks, Ming