Re: [PATCH] nvme-multipath: Early exit if no path is available

From: Christoph Hellwig
Date: Fri Jan 22 2021 - 13:04:15 EST


On Fri, Jan 22, 2021 at 06:41:25PM +0100, Daniel Wagner wrote:
> 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.

How can that happen once we're in the loop?