]> git.ipfire.org Git - thirdparty/linux.git/commit
nvme: enable vectored registered bufs for passthrough cmds
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 20 May 2025 15:22:18 +0000 (16:22 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 4 Jun 2025 07:51:10 +0000 (09:51 +0200)
commit3c12a8939e04749b8c2520c8b1fa2bf171bd8852
tree77ce8a5cc68cbe2293235698b58dc36674128b46
parentc4b680ac2863821e19d360fca62f78b68b1c8ece
nvme: enable vectored registered bufs for passthrough cmds

nvme already supports registered buffers for non-vectored io_uring
passthrough commands, enable it for the vectored mode as well. It takes
an iovec, each entry of which should contain a range within the same
registered buffer specificied in sqe->buf_index.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/ioctl.c