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
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to