WSL2-Linux-Kernel/drivers/nvme/host
Christoph Hellwig bfd8947194 nvme: fixes for NVME_IOCTL_IO_CMD on the char device
Make sure we synchronize access to the namespaces list and grab a reference
to the namespace before doing I/O.  Make sure to reject the ioctl if multiple
namespaces are present as it's entirely unsafe, and warn when using it even
with a single namespace.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2016-01-12 13:30:15 -07:00
..
Kconfig NVMe: Add explicit block config dependency 2015-10-12 11:43:22 -06:00
Makefile nvme: split command submission helpers out of pci.c 2015-12-01 10:59:38 -07:00
core.c nvme: fixes for NVME_IOCTL_IO_CMD on the char device 2016-01-12 13:30:15 -07:00
lightnvm.c NVMe: fix build with CONFIG_NVM enabled 2015-12-03 09:52:05 -07:00
nvme.h nvme: synchronize access to ctrl->namespaces 2016-01-12 13:30:13 -07:00
pci.c nvme: Move nvme_freeze/unfreeze_queues to nvme core 2016-01-12 13:30:11 -07:00
scsi.c nvme: move chardev and sysfs interface to common code 2015-12-01 10:59:40 -07:00