/* Locking Note: This function expects that the lport mutex is locked before calling it.  */
void fc_disc_stop_rports(struct fc_disc *disc)
/* Locking Note: This function expects that the lport mutex is locked before calling it.  */
void fc_disc_stop_rports(struct fc_disc *disc)
{
	struct fc_lport *lport;
	struct fc_rport_priv *rdata, *next;
	lport = disc->lport;
	mutex_lock(&disc->disc_mutex);
	list_for_each_entry_safe(rdata, next, &disc->rports, peers)
		lport->tt.rport_logoff(rdata);
	mutex_unlock(&disc->disc_mutex);
}