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)
commit886fabf693263e8651c0c4ab84fc626ad6d3a6e7
treee0aa72950198f47101c902e6c42c69be817190f7
parent0585b75437d335c6580066c1ab9ea3092139df32
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