diff options
author | Keith Busch <kbusch@kernel.org> | 2024-05-21 11:02:28 -0700 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-05-23 13:44:42 -0700 |
commit | a2e4c5f5f68dbd206f132bc709b98dea64afc3b8 (patch) | |
tree | ffcb2e8ea39978cdef1393fa3d30f9d7ea4a0b0d /drivers/nvme/host/nvme.h | |
parent | 2fe7b422460d14b33027d8770f7be8d26bcb2639 (diff) | |
download | linux-a2e4c5f5f68dbd206f132bc709b98dea64afc3b8.tar.gz linux-a2e4c5f5f68dbd206f132bc709b98dea64afc3b8.tar.bz2 linux-a2e4c5f5f68dbd206f132bc709b98dea64afc3b8.zip |
nvme-multipath: fix io accounting on failover
There are io stats accounting that needs to be handled, so don't call
blk_mq_end_request() directly. Use the existing nvme_end_req() helper
that already handles everything.
Fixes: d4d957b53d91ee ("nvme-multipath: support io stats on the mpath device")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
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 cacc56f4bbf4..fc31bd340a63 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -767,6 +767,7 @@ static inline bool nvme_state_terminal(struct nvme_ctrl *ctrl) } } +void nvme_end_req(struct request *req); void nvme_complete_rq(struct request *req); void nvme_complete_batch_req(struct request *req); |