[openib-general] [PATCH] for 2-6-19 rdma/addr: use client registration to fix module unload race

Sean Hefty mshefty at ichips.intel.com
Wed Nov 1 15:40:46 PST 2006


>>I think this is actually a good point for the CM case at least.
>>Clients already have something registered with the CM (namely the CM
>>ID itself), so if we required all consumers to destroy their IDs
>>explicitly, then there's no reason to add additional client
>>registration.
> 
> The issue is more related to cm_id's that are created when a new connection 
> request arrives.  For the user to destroy the new id's, they either need to be 
> able to queue them somewhere for later destruction, call destroy from the 
> callback, or indicate that the id's should be destroyed when the callback returns.

I should add that the point is taken though.  If we only allow new cm_id's to be 
destroyed this way, then we avoid the issue.

I _think_ that all users of the ib_cm and rdma_cm behave this way, but I need to 
verify this to be sure.

- Sean




More information about the general mailing list