nvme: wire up fixed buffer support for nvme passthrough for-6.1/passthrough-2022-10-03
authorKanchan Joshi <joshi.k@samsung.com>
Fri, 30 Sep 2022 06:27:49 +0000 (11:57 +0530)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Sep 2022 13:51:13 +0000 (07:51 -0600)
commit23fd22e55b767be9c31fda57205afb2023cd6aad
treea64738ac622a39e56f11a9e70bf95d4a398a101b
parent4d174486820e625fa85bac5d4235d4b4cb659866
nvme: wire up fixed buffer support for nvme passthrough

if io_uring sends passthrough command with IORING_URING_CMD_FIXED flag,
use the pre-registered buffer for IO (non-vectored variant). Pass the
buffer/length to io_uring and get the bvec iterator for the range. Next,
pass this bvec to block-layer and obtain a bio/request for subsequent
processing.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Link: https://lore.kernel.org/r/20220930062749.152261-13-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/ioctl.c