[openib-general] [PATCH] for-2.6.19 cma: protect against adding device during destruction

Or Gerlitz ogerlitz at voltaire.com
Sat Sep 2 23:57:20 PDT 2006


Sean Hefty wrote:
> This closes a window where address resolution can attach an rdma_cm_id
> to a device during destruction of the rdma_cm_id.  This can result in
> the rdma_cm_id remaining in the device list after its memory has been
> freed.

Sean,

Does this patch protects against the case where an rdma_cm_id is being 
destructed while address resolution related to the **same** id attaches 
it to a device?

If yes, why does someone destroys this id? is it legal to do so?

If not, so your patch protects against the case where one id is being 
destroyed at the same time another id is being attached to the device?

thanks,

Or.





More information about the general mailing list