nvme-multipath: fix io accounting on failover
authorKeith Busch <kbusch@kernel.org>
Tue, 21 May 2024 18:02:28 +0000 (11:02 -0700)
committerKeith Busch <kbusch@kernel.org>
Thu, 23 May 2024 20:44:42 +0000 (13:44 -0700)
commita2e4c5f5f68dbd206f132bc709b98dea64afc3b8
treeffcb2e8ea39978cdef1393fa3d30f9d7ea4a0b0d
parent2fe7b422460d14b33027d8770f7be8d26bcb2639
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>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h