[PATCH v2 3/5] io_uring/uring_cmd: support dma-buf registered buffers
Pavel Begunkov
asml.silence at gmail.com
Thu Oct 29 03:59:26 PDT 2026
On 10/22/26 15:44, Anuj Gupta wrote:
> From: Anuj Gupta <anuj20.g at samsung.com>
>
> Let callers of io_uring_cmd_import_fixed() opt in to dma-buf registered
> buffers with IO_URING_CMD_IMPORT_DMABUF, and attach the current map on
> import.
>
> The map has to be dropped at hardware completion rather than from
> task_work. Add io_uring_cmd_hw_done() for drivers to call from end_io,
> which drops the map and queues task_work, and warn if task_work is
> queued with a map still attached.
Reviewed-by: Pavel Begunkov <asml.silence at gmail.com>
--
Pavel Begunkov
More information about the Linux-nvme
mailing list