]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme: introduce nvme_execute_passthru_rq to call nvme_passthru_[start|end]()
authorLogan Gunthorpe <logang@deltatee.com>
Fri, 24 Jul 2020 17:25:14 +0000 (11:25 -0600)
committerChristoph Hellwig <hch@lst.de>
Wed, 29 Jul 2020 05:45:21 +0000 (07:45 +0200)
commit17365ae6975c7f7494a2d1cd0bf18b5ed238e072
treed82b903b2674e332d8839e88bdf0db298f25eecc
parentdf21b6b1934e89c2cc2bb1332146ed6c2df1321c
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>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h