nvme: allow unprivileged passthrough of Identify Controller
authorJoel Granados <j.granados@samsung.com>
Mon, 5 Dec 2022 14:27:46 +0000 (15:27 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 6 Dec 2022 08:27:03 +0000 (09:27 +0100)
commitea43fceea4171f29457f8d46543ec320b777c1c7
tree90263be66e85e858d53206639696434e89fcd83e
parentd4d957b53d91eebc8c681c480edfdc697e55231e
nvme: allow unprivileged passthrough of Identify Controller

Add unprivileged passthrough of the I/O Command Set Independent and I/O
Command Set Specific Identify Controller sub-command.

This will allow access to attributes (e.g. MDTS and WZSL) that are needed
to effectively form passthrough I/O to the /dev/ng* character devices.

Signed-off-by: Joel Granados <j.granados@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/ioctl.c