[PATCH 2/3] nvme: multipath: only update ctrl->nr_active when using queue-depth iopolicy

Chaitanya Kulkarni chaitanyak at nvidia.com
Tue Nov 7 13:42:22 PST 2023


> +void nvme_subsys_iopolicy_update(struct nvme_subsystem *subsys, int iopolicy)
> +{
> +	struct nvme_ctrl *ctrl;
> +
> +	WRITE_ONCE(subsys->iopolicy, iopolicy);
> +
> +	mutex_lock(&nvme_subsystems_lock);
> +	list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) {
> +		atomic_set(&ctrl->nr_active, 0);
> +	}

nit:- do we need braces for above loop ?

-ck




More information about the Linux-nvme mailing list