[openib-general] Re: ibv_get_async_event

Sean Hefty mshefty at ichips.intel.com
Tue Sep 6 09:13:31 PDT 2005


Michael S. Tsirkin wrote:
> If thats what we are trying to do, I'd like to propose another idea:
> when cq is destroyed, and after all cq events are queued to user,
> put a special "cq destroyed" event into the event queue.
> When a user calls destroy_cq, and after releasing kernel/hardware resources,
> move the cq structure to a special cleanup list, userspace library will
> only destroy the userspace cq structure when it gets this event.

I think that this will only work if users are using a single thread to poll for 
events.  I don't think that we want to impose such a restriction.

- Sean



More information about the general mailing list