]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: enable uring-passthrough for admin commands
authorKanchan Joshi <joshi.k@samsung.com>
Fri, 20 May 2022 09:06:30 +0000 (14:36 +0530)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 May 2022 12:17:33 +0000 (06:17 -0600)
commit58e5bdeb9c2b06895e723c0b1e670f54510ff782
tree5fdb0fd35c94c32ad476ba62a5b3f6692bc2368e
parent00fc2eeb15acc7f7e8713edc6d4d9855936226cb
nvme: enable uring-passthrough for admin commands

Add two new opcodes that userspace can use for admin commands:
NVME_URING_CMD_ADMIN : non-vectroed
NVME_URING_CMD_ADMIN_VEC : vectored variant

Wire up support when these are issued on controller node(/dev/nvmeX).

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220520090630.70394-3-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/nvme.h
include/uapi/linux/nvme_ioctl.h