]> git.ipfire.org Git - thirdparty/linux.git/commit
ublk: zc register/unregister bvec
authorKeith Busch <kbusch@kernel.org>
Thu, 27 Feb 2025 22:39:15 +0000 (14:39 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Feb 2025 14:05:41 +0000 (07:05 -0700)
commit1f6540e2aabb7372e68223a3669019589c3e30ad
tree3b789fbfe6ed5ca4051496a314a945e6e51e9d3e
parent27cb27b6d5ea401143ca3648983342bb820c4be9
ublk: zc register/unregister bvec

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@kernel.org>
Link: https://lore.kernel.org/r/20250227223916.143006-6-kbusch@meta.com
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c
include/uapi/linux/ublk_cmd.h