[PATCHv2] nvme/fc: add 'discovery' sysfs attribute to fc transport device

James Smart james.smart at broadcom.com
Fri Dec 1 08:21:50 PST 2017


On 12/1/2017 1:27 AM, Hannes Reinecke wrote:
> +	spin_lock_irqsave(&nvme_fc_lock, flags);
> +	list_for_each_entry(lport, &nvme_fc_lport_list, port_list) {
> +		list_for_each_entry(rport, &lport->endp_list, endp_list) {
> +			if (!nvme_fc_lport_get(lport))
> +				continue;
> +			if (!nvme_fc_rport_get(rport))
> +				continue;

ref counting messed up if rport_get fails - need to back out the lport get.

-- james




More information about the Linux-nvme mailing list