[PATCH v8 1/2] nvme-multipath: prepare for "queue-depth" iopolicy
Christoph Hellwig
hch at lst.de
Tue Jun 25 22:05:48 PDT 2024
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.
More information about the Linux-nvme
mailing list