[openib-general] bug report: mad.c: ib_req_notify_cq called without polling cq

Sean Hefty sean.hefty at intel.com
Sun Jun 11 21:31:46 PDT 2006


>mad.c calls ib_req_notify_cq on hotplug event in ib_mad_port_start, after QPs
>are attached to a CQ.  Since this function does not poll the CQ, if sufficient
>number of MADs arrive at the QP before ib_req_notify_cq is called, RQ might get
>empty and no completion events will ever be generated.

This is arming the CQ _before_ we post MADs to the receive queue of the QP.  I
don't think that there's a race here.

- Sean




More information about the general mailing list