Re: [PATCH] nvme: fix racy access to FDP placement id array

Christoph Hellwig <[email protected]>
Newsgroups org.infradead.lists.linux-nvme
Message-ID <[email protected]>
> +	if (ctrl->ctratt & NVME_CTRL_ATTR_FDPS) {
> +		ns->head = head;
> +		ret = nvme_query_fdp_info(ns, info);
> +		if (ret < 0)
> +			goto out_clear_ns_head;
> +	}

The conditional assignment of ns->head here is weird.  Just pass it
explicitly to nvme_query_fdp_info so that you don't have this issue.

Otherwise the patch looks good.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.