]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: add vectored-io support for uring-cmd
authorAnuj Gupta <anuj20.g@samsung.com>
Wed, 11 May 2022 05:47:49 +0000 (11:17 +0530)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 May 2022 13:41:19 +0000 (07:41 -0600)
commit0a26c4b6de5accc102851081e20041ac86b78c81
treed2ea8fdca525a534d834504b5ebfd58bb88c412f
parente084c73c14753dd53533fadf922ecbeb2640ee54
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/20220511054750.20432-6-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/ioctl.c
include/uapi/linux/nvme_ioctl.h