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
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to