[openib-general] Re: ibv_get_async_event

Sean Hefty mshefty at ichips.intel.com
Tue Aug 30 16:57:24 PDT 2005


Fab Tillier wrote:
>>Hmm, I'd rather just sweep through the list of events when we destroy
>>a CQ/QP/SRQ and delete any events that refer to the object we're
>>destroying.  It's on my to-do list but I'll definitely take patches if
>>you do it first.
> 
> Couldn't an event be "in flight" when the user destroys an object, causing the
> event to be delivered post-destruction?

I believe that sweeping through the list to cleanup events is necessary but not 
sufficient.  The user could have retrieved an event and be returning from the 
get call as they call destroy in a separate thread.  If destroy completes first, 
then the context returned from get event will be invalid.

- Sean



More information about the general mailing list