Re: [PATCH v2 2/2] ublk: clear auto buf reg before updating io->buf in batch commit
Ming Lei <[email protected]> Fri, 31 Jul 2026 11:13:42 -0500
| Newsgroups | org.kernel.vger.linux-block |
|---|---|
| Message-ID | <amzJtuw3YMgfLcl1@fedora-laptop> |
On Thu, Jul 30, 2026 at 09:09:10AM +0800, Yang Xiuwei wrote:
> ublk_batch_commit_io() stored the new auto_buf into io->buf before
> calling ublk_clear_auto_buf_reg(). Clear takes the unregister index
> from io->buf.auto_reg, so it could drop the new slot and leave the
> old registered buffer behind.
>
> Fixes: 1e500e106d5a ("ublk: handle UBLK_U_IO_COMMIT_IO_CMDS")
> Signed-off-by: Yang Xiuwei <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Thanks,
Ming