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

James Smart jsmart2021 at gmail.com
Thu Oct 19 08:59:06 PDT 2017


On 10/19/2017 8:23 AM, Christoph Hellwig wrote:
>> +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.
> 

Agree, I can make a short helper

-- james




More information about the Linux-nvme mailing list