diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2022-10-03 12:43:43 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-12-06 09:16:57 +0100 |
commit | 6887fc6495f2dfd55e088c982e983815278ee453 (patch) | |
tree | 852026d9a70e1cddf9f23c67ca1213b2684c9378 /drivers/nvme/target | |
parent | 99722c8aa8b994db15ef60965c33f6a8e399b36c (diff) | |
download | linux-6887fc6495f2dfd55e088c982e983815278ee453.tar.bz2 |
nvme: introduce nvme_start_request
In preparation for nvme-multipath IO stats accounting, we want the
accounting to happen in a centralized place. The request completion
is already centralized, but we need a common helper to request I/O
start.
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'drivers/nvme/target')
-rw-r--r-- | drivers/nvme/target/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/loop.c b/drivers/nvme/target/loop.c index 4173099ef9a4..6d176621f46d 100644 --- a/drivers/nvme/target/loop.c +++ b/drivers/nvme/target/loop.c @@ -145,7 +145,7 @@ static blk_status_t nvme_loop_queue_rq(struct blk_mq_hw_ctx *hctx, if (ret) return ret; - blk_mq_start_request(req); + nvme_start_request(req); iod->cmd.common.flags |= NVME_CMD_SGL_METABUF; iod->req.port = queue->ctrl->port; if (!nvmet_req_init(&iod->req, &queue->nvme_cq, |