>      wc->queue[head].port_num = entry->port_num;
 > +    wmb();
 >      wc->head = next;

Please add comments explaining these barriers... maybe something like

       /* Make sure queue entry contents are visible before head index update */

also I notice that the latest libibipathverbs git tree (which hasn't
been touched for 3 months) does not seem to have the analogous read
memory barrier when polling CQ contents.

 - R.
_______________________________________________
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

Reply via email to