]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: update node paths after adding new path
authorKeith Busch <keith.busch@intel.com>
Fri, 5 Oct 2018 15:49:37 +0000 (09:49 -0600)
committerChristoph Hellwig <hch@lst.de>
Wed, 17 Oct 2018 06:58:22 +0000 (08:58 +0200)
commit7235b6ccb61c7b304718e76e3bc1981c722ac515
treee0aa72950198f47101c902e6c42c69be817190f7
parenta634628f9979e2d47a79c29acd8ef4e4df4d26f9
nvme: update node paths after adding new path

The nvme namespace paths were being updated only when the current path
was not set or nonoptimized. If a new path comes online that is a better
path for its NUMA node, the multipath selector may continue using the
previously set path on a potentially further node.

This patch re-runs the path assignment after successfully adding a new
optimized path.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/multipath.c