diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2020-07-24 11:25:14 -0600 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-29 07:45:21 +0200 |
commit | 17365ae6975c7f7494a2d1cd0bf18b5ed238e072 (patch) | |
tree | d82b903b2674e332d8839e88bdf0db298f25eecc /drivers/nvme/host/nvme.h | |
parent | df21b6b1934e89c2cc2bb1332146ed6c2df1321c (diff) | |
download | lwn-17365ae6975c7f7494a2d1cd0bf18b5ed238e072.tar.gz lwn-17365ae6975c7f7494a2d1cd0bf18b5ed238e072.zip |
nvme: introduce nvme_execute_passthru_rq to call nvme_passthru_[start|end]()
Introduce a new nvme_execute_passthru_rq() helper which calls
nvme_passthru_[start|end]() around blk_execute_rq(). This ensures
all passthru calls (including nvme_submit_io()) will be wrapped
appropriately.
nvme_execute_passthru_rq() will also be useful for the nvmet passthru
code and is exported in the NVME_TARGET_PASSTHRU namespace.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r-- | drivers/nvme/host/nvme.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 25063f041f8d..4e3bc4b66c57 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -792,5 +792,6 @@ static inline void nvme_hwmon_init(struct nvme_ctrl *ctrl) { } u32 nvme_command_effects(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u8 opcode); +void nvme_execute_passthru_rq(struct request *rq); #endif /* _NVME_H */ |