]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: take node locality into account when selecting a path
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Sep 2018 07:51:29 +0000 (09:51 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 1 Oct 2018 21:16:14 +0000 (14:16 -0700)
commitd9569b6b4eb6d3eb2620a4a1050336ea95cb0c1b
treea1aace9b855c7d01119f521179babf11eb941f2d
parent1679d04eddd90d39e0d689088a8b1e47407b3a8d
nvme: take node locality into account when selecting a path

Make current_path an array with an entry for every possible node, and
cache the best path on a per-node basis.  Take the node distance into
account when selecting it.  This is primarily useful for dual-ported PCIe
devices which are connected to PCIe root ports on different sockets.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h