]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: prepare for fault injection into admin commands
authorAkinobu Mita <akinobu.mita@gmail.com>
Thu, 20 Jun 2019 06:49:02 +0000 (08:49 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 21 Jun 2019 09:15:50 +0000 (11:15 +0200)
commit954aa4f33c51c1a64533c8c1102478dd690d6ea2
treebe62e299f7f760e27819a07a06ecd447e4977441
parentf5ac757fbb4d38a4bf18792d3651db9ec8c41b89
nvme: prepare for fault injection into admin commands

Currenlty fault injection support for nvme only enables to inject errors
into the commands submitted to I/O queues.

In preparation for fault injection into the admin commands, this makes
the helper functions independent of struct nvme_ns.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/fault_inject.c
drivers/nvme/host/nvme.h