[Openib-windows] SRP connection state
Yossi Leybovich
sleybo at mellanox.co.il
Tue Sep 19 23:37:41 PDT 2006
> -----Original Message-----
> From: openib-windows-bounces at openib.org
> [mailto:openib-windows-bounces at openib.org] On Behalf Of Fabian Tillier
> Sent: Wednesday, September 20, 2006 12:35 AM
> To: Yossi Leybovich
> Cc: openib-windows at openib.org
> Subject: Re: [Openib-windows] SRP connection state
>
> 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.
>
What about this scenario:
While srp_connect(not CM callback) check the state the CM get
srp_dreq_cb which change the state .
> I don't think there's an issue here with synchronization.
>
> - Fab
>
> _______________________________________________
> openib-windows mailing list
> openib-windows at openib.org
> http://openib.org/mailman/listinfo/openib-windows
>
More information about the ofw
mailing list