]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Passthrough IOCTL for IO commands
authorKeith Busch <keith.busch@intel.com>
Fri, 12 Sep 2014 22:07:20 +0000 (16:07 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 4 Nov 2014 20:17:09 +0000 (13:17 -0700)
commitc0074026d159423038675857dd9af680242ab866
tree5587991bb23e2694f627e7ff73b784eda2dd1cc8
parent7c777f4244218f43a1b2cc217c95d9aba6bb37ed
NVMe: Passthrough IOCTL for IO commands

The NVME_IOCTL_SUBMIT_IO only works for IO commands with block data
transfers and isn't usable for other NVMe commands like flush,
data set management, or any sort of vendor unique command. The
NVME_IOCTL_ADMIN_CMD, however, can easily be modified to accept arbitrary
IO commands in addition to arbitrary admin commands without breaking
backward compatibility. This patch just adds a new IOCTL to distinguish
if the driver should submit the command on an IO or Admin queue.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c
include/uapi/linux/nvme.h