> Does the application need to ensure that ibv_poll_cq is never called after
 > the associated qp is destroyed?

No, definitely not, since a CQ may be attached to arbitrarily many
QPs, and clearly you need to be able to poll the CQ even after one of
the QPs is destroyed.

However, you say your app does:

 > 1.       Sets the qp_state to IBV_QPS_ERR
 > 2.       Sleeps for a second
 > 3.       Calls ibv_destroy_qp
 > 4.       Calls ibv_destoy_cq

and if you are destroying a CQ, then you definitely do need to make
sure you don't poll the CQ after calling ibv_destroy_cq.

 - R.
_______________________________________________
general mailing list
general@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

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

Reply via email to