[PATCH 2/3] nvme_fc: add support for duplicate_connect option

Christoph Hellwig hch at infradead.org
Thu Oct 19 08:23:17 PDT 2017


> +static inline bool
> +__nvme_fc_options_match(struct nvmf_ctrl_options *opts,
> +			struct nvme_fc_ctrl *ctrl)
> +{
> +	if (strcmp(opts->subsysnqn, ctrl->ctrl.opts->subsysnqn) ||
> +	    strcmp(opts->host->nqn, ctrl->ctrl.opts->host->nqn) ||
> +	    memcmp(&opts->host->id, &ctrl->ctrl.opts->host->id,
> +				sizeof(uuid_t)))
> +		return false;

This just checks generic options and isn't FC specific.  As a properly
named helper it might make sense in common code.



More information about the Linux-nvme mailing list