[openib-general] possible bug in rdma_connect()

Sean Hefty mshefty at ichips.intel.com
Tue Jan 24 09:50:38 PST 2006


Steve Wise wrote:
> I think I found a bug in rdma_connect().  Shouldn't it bump the
> rdma_cm_id refcnt before calling down into the transport-specific CM to
> inititiate a connect?  Then deref it in the callback function.  
> 
> The case I'm thinking about is if an ib_client does and rdma_connect(),
> then does an rdma_destroy_id() before the connect reply comes in.

The reference isn't needed.  The rdma_cm must create a transport specific ID 
before it can call connect.  That ID is destroyed by the rdma_cm when the 
rdma_cm_id is destroyed.  The destruction of the transport specific ID must 
block until all callbacks associated with it complete.

- Sean



More information about the general mailing list