[Openib-windows] SRP connection state

Fabian Tillier ftillier at silverstorm.com
Tue Sep 19 14:35:14 PDT 2006


Hi Yossi,

On 9/14/06, Yossi Leybovich <sleybo at mellanox.co.il> wrote:
>
> Fab
>
> there are  few places in code that we write/read the connection state.
> srp_rej_cb
> srp_dreq_cb
> srp_reply_cb
> srp_connect
>
> Shouldn't this field need to be protect by lock ?

srp_connect will block until the connection establishment is complete
(success or failure).  It then reads the connection state that was set
by the various CM callbacks.

The CM callbacks are serialized by the CM.  These set the state.  The
establishment (REP, RTU, REJ) also signals the connection event to
wake up srp_connect.

I don't think there's an issue here with synchronization.

- Fab




More information about the ofw mailing list