/* fc_vport_setlink() - update link and status on a VN_Port @vn_port: virtual port to update  */
void fc_vport_setlink(struct fc_lport *vn_port)
/* fc_vport_setlink() - update link and status on a VN_Port @vn_port: virtual port to update  */
void fc_vport_setlink(struct fc_lport *vn_port)
{
	struct fc_vport *vport = vn_port->vport;
	struct Scsi_Host *shost = vport_to_shost(vport);
	struct fc_lport *n_port = shost_priv(shost);
	mutex_lock(&n_port->lp_mutex);
	mutex_lock_nested(&vn_port->lp_mutex, LPORT_MUTEX_VN_PORT);
	__fc_vport_setlink(n_port, vn_port);
	mutex_unlock(&vn_port->lp_mutex);
	mutex_unlock(&n_port->lp_mutex);
}