[Open-FCoE] [RFC PATCH 02/28] libfc:Add a callback to the fc_lport for fc_rport events

Joe Eykholt jre at nuovasystems.com
Fri Sep 12 06:13:55 UTC 2008


Joe Eykholt wrote:

> Then in unlock:
> 
> +	event = rdata->event;
> +	rdata->event = LPORT_EV_RPORT_NONE;
> 	spin_unlock_bh(&rdata->rp_lock);
> +	if (event != LPORT_EV_RPORT_NONE)
> +		lport->tt.lport_event(lport, rport, event);

On second thought, the lport_event callback can just be passed
the state of the rport (as it was before the lock was dropped).

	Joe





More information about the devel mailing list