Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2032d074 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Christoph Hellwig
Browse files

nvme-multipath: also check for a disabled path if there is a single sibling



When we have a singular list in nvme_round_robin_path() we still
need to check its validity.

Signed-off-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent ca7ae5c9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -183,8 +183,11 @@ static struct nvme_ns *nvme_round_robin_path(struct nvme_ns_head *head,
{
	struct nvme_ns *ns, *found, *fallback = NULL;

	if (list_is_singular(&head->list))
	if (list_is_singular(&head->list)) {
		if (nvme_path_is_disabled(old))
			return NULL;
		return old;
	}

	for (ns = nvme_next_ns(head, old);
	     ns != old;