]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
nvme-multipath: do not select namespaces which are about to be removed
authorHannes Reinecke <hare@suse.de>
Thu, 4 Jul 2019 06:10:47 +0000 (08:10 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 9 Jul 2019 21:18:03 +0000 (14:18 -0700)
commit04e70bd4a0264a3d488a9eff6e116d7dc9a77967
tree5b8aa2aec3751e985f87af763397dedbb4618516
parent2032d074716a811440aa9cd2e971a0716646d6af
nvme-multipath: do not select namespaces which are about to be removed

nvme_ns_remove() will first set the NVME_NS_REMOVING flag before removing
it from the list at the very last step.
So to avoid selecting a namespace in nvme_find_path() which is about to be
removed check the NVME_NS_REMOVING flag, too, when selecting a new path.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/multipath.c