Thanks. However, it seems racy to me to use the mutex as you do here. I think if a consumer calls ibv_create_cq() and ibv_destroy_comp_channel() simultaneously (for the same completion channel obviously), exactly one of the two calls should succeed. As it stands now, you might have a comp channel that starts with a refcnt of 0, have the test in ibv_destroy_comp_channel() succeed, then have ibv_create_cq() use the completion channel and bump the refcnt too late and also return success. _______________________________________________ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
