]> www.infradead.org Git - users/hch/block.git/commit
nvme: add vectored-io support for uring-cmd io_uring-passthrough
authorChristoph Hellwig <hch@lst.de>
Fri, 6 May 2022 06:38:00 +0000 (08:38 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 6 May 2022 06:58:26 +0000 (08:58 +0200)
commite32e791d47720c9820ed4911855483817c09f084
tree4879ee5b89cbab05cd05b0f745c96849ab006a04
parenta4ee6bbe76fef38e01cbe54fc23e07ea8b7c33b5
nvme: add vectored-io support for uring-cmd

wire up support for async passthru that takes an array of buffers (using
iovec). Exposed via a new op NVME_URING_CMD_IO_VEC. Same 'struct
nvme_uring_cmd' is to be used with -

1. cmd.addr as base address of user iovec array
2. cmd.data_len as count of iovec array elements

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220505060616.803816-6-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/ioctl.c
include/uapi/linux/nvme_ioctl.h