Commit bb642e2d authored by Amit Chaudhary's avatar Amit Chaudhary Committed by Keith Busch
Browse files

nvme-multipath: Skip nr_active increments in RETRY disposition



For queue-depth I/O policy, this patch fixes unbalanced I/Os across
nvme multipaths.

Issue Description:

The RETRY disposition incorrectly increments ns->ctrl->nr_active
counter and reinitializes iostat start-time. In such cases nr_active
counter never goes back to zero until that path disconnects and
reconnects.

Such a path is not chosen for new I/Os if multiple RETRY cases on a given
a path cause its queue-depth counter to be artificially higher compared
to other paths. This leads to unbalanced I/Os across paths.

The patch skips incrementing nr_active if NVME_MPATH_CNT_ACTIVE is already
set. And it skips restarting io stats if NVME_MPATH_IO_STATS is already set.

base-commit: e989a3da2d371a4b6597ee8dee5c72e407b4db7a
Fixes: d4d957b5 ("nvme-multipath: support io stats on the mpath device")
Signed-off-by: default avatarAmit Chaudhary <achaudhary@purestorage.com>
Reviewed-by: default avatarRandy Jennings <randyj@purestorage.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent 455281c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment