[openib-general] Re: ibv_get_async_event
Sean Hefty
mshefty at ichips.intel.com
Fri Sep 2 12:18:24 PDT 2005
Roland Dreier wrote:
> Arlin> Shouldn't there be a new ibv_put_cq_event() to go with the
> Arlin> ibv_get_cq_event() ?
>
> No, I think that's dealt with by sweeping the CQ in userspace when
> destroying a QP.
I don't think that sweeping the CQ in userspace eliminates the race. The call
to ibv_get_cq_event() can be just about to return to the user when they call
destroy in a separate thread. Destroy has no way of blocking, so get could
return an invalid pointer.
- Sean
More information about the general
mailing list