]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-multipath: Early exit if no path is available
authorDaniel Wagner <dwagner@suse.de>
Wed, 27 Jan 2021 10:30:33 +0000 (11:30 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 28 Jan 2021 18:25:07 +0000 (19:25 +0100)
commit6960dd319fd93a17e1514d3e14ed7cb4c5f77c0a
tree2a16a1d011dad5477ca27106d5cb2b3665ff26f2
parent7fc1b5ffe7bd4945ee820af7a4af9cd7e28b850d
nvme-multipath: Early exit if no path is available

nvme_round_robin_path() should test if the return ns pointer is valid.
nvme_next_ns() will return a NULL pointer if there is no path left.

Fixes: 8b73c7c68e13 ("nvme-multipath: round-robin I/O policy")
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/multipath.c