nvme: fix multipath batched completion accounting
authorKeith Busch <kbusch@kernel.org>
Tue, 21 May 2024 16:50:47 +0000 (09:50 -0700)
committerKeith Busch <kbusch@kernel.org>
Thu, 23 May 2024 20:44:35 +0000 (13:44 -0700)
commit2fe7b422460d14b33027d8770f7be8d26bcb2639
tree3de95ca56e742dbc38fbe75ffeb2dcd1ba49e2ae
parentd3a043733f25d743f3aa617c7f82dbcb5ee2211a
nvme: fix multipath batched completion accounting

Batched completions were missing the io stats accounting and bio trace
events. Move the common code to a helper and call it from the batched
and non-batched functions.

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>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c