RE: [PATCH v3 for-next 05/13] IB/cm: Reference count ib_cm_ids

Hefty, Sean
2015-05-15T19:11:10Z

> The lifetime if each cm_id is clearly defined:
>
> cm_create_cm_id()
> cm_ref_id() / cm_deref_id()
> cm_destroy_id()
>
> The fact the CM might share a listen (and only a listen) ID behind the
> scenes is not the caller's problem. That is an implementation choice,
> each caller stands alone and uses the API properly, assuming it is the
> only user of the returned cm_id.

Actually, I seriously question why the ib_cm should be modified at all for any of this.