Re: [PATCH v8 1/2] nvme-multipath: prepare for "queue-depth" iopolicy

From: Christoph Hellwig
Date: Wed Jun 26 2024 - 01:06:00 EST


On Tue, Jun 25, 2024 at 08:26:04AM -0400, John Meneghini wrote:
> + struct nvme_ns *old = srcu_dereference(head->current_path[node], &head->srcu);

Please avoid the overly long line here.

> +inline struct nvme_ns *nvme_find_path(struct nvme_ns_head *head)
> +{
> + if (READ_ONCE(head->subsys->iopolicy) == NVME_IOPOLICY_RR)
> + return nvme_round_robin_path(head);
> + else
> + return nvme_numa_path(head);

No need for an else after a return.