nvme: wire-up uring-cmd support for io-passthru on char-device.
authorKanchan Joshi <joshi.k@samsung.com>
Wed, 11 May 2022 05:47:48 +0000 (11:17 +0530)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 May 2022 13:41:13 +0000 (07:41 -0600)
commit456cba386e94f22fa1b1426303fdcac9e66b1417
tree679d2acc3e7f2d9cd7005a6012155c030f7363a6
parentbcad2565b5d64700cf68cc9d48618ab817ff5bc4
nvme: wire-up uring-cmd support for io-passthru on char-device.

Introduce handler for fops->uring_cmd(), implementing async passthru
on char device (/dev/ngX). The handler supports newly introduced
operation NVME_URING_CMD_IO. This operates on a new structure
nvme_uring_cmd, which is similar to struct nvme_passthru_cmd64 but
without the embedded 8b result field. This field is not needed since
uring-cmd allows to return additional result via big-CQE.

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-5-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/ioctl.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h
include/uapi/linux/nvme_ioctl.h