> @@ -139,6 +139,9 @@ static void smp_snoop(struct ib_device * > event.element.port_num = port_num; > ib_dispatch_event(&event); > } > + > + /* update cache with the incoming mad */
Please don't add such comments: name mthca_cache_update is clear enough. > + mthca_cache_update(to_mdev(ibdev), port_num, mad); > } > } This will generate the event first, update cache after this, right? If so, there is still a window where e.g. ipoib gets a pkey change event, performs a query and gets a stale value. -- MST _______________________________________________ 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
