Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions drivers/nvme/host/multipath.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ static struct nvme_ns *nvme_queue_depth_path(struct nvme_ns_head *head)
min_depth_opt = depth;
best_opt = ns;
}
if (min_depth_opt == 0)
goto out;
break;
case NVME_ANA_NONOPTIMIZED:
if (depth < min_depth_nonopt) {
Expand All @@ -419,11 +421,8 @@ static struct nvme_ns *nvme_queue_depth_path(struct nvme_ns_head *head)
default:
break;
}

if (min_depth_opt == 0)
return best_opt;
}

out:
return best_opt ? best_opt : best_nonopt;
}

Expand Down