]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-multipath: do not fall back to __nvme_find_path() for non-optimized paths
authorHannes Reinecke <hare@suse.de>
Mon, 27 Jul 2020 16:08:03 +0000 (18:08 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 29 Jul 2020 05:45:22 +0000 (07:45 +0200)
commit4bdede5ec63b72be8543aa2d8c9b43a475365c9f
treee49b04f533229e6ee3e02a9684cdcd3f3682954c
parent2122187ed47d9465cbff03580657dfd1899bdd29
nvme-multipath: do not fall back to __nvme_find_path() for non-optimized paths

When nvme_round_robin_path() finds a valid namespace we should be using it;
falling back to __nvme_find_path() for non-optimized paths will cause the
result from nvme_round_robin_path() to be ignored for non-optimized paths.

Fixes: 8b73c7c68e13 ("nvme-multipath: round-robin I/O policy")
Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/multipath.c