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)
commita3646451edd52ba238cbe4f618aaf6eb9bf9d60c
treebe62e299f7f760e27819a07a06ecd447e4977441
parenta5448fdc469d67da99728a132229aba5fce8f67a
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