On Wed, Oct 08, 2014 at 02:09:48PM -0700, Daniele Di Proietto wrote:
> ovsrcu_compare_exchange() can be used to write to RCU pointers without 
> explicit
> locking. It maybe useful to implement lists and other simple data structures.
> 
> Following commits make use of this
> 
> Signed-off-by: Daniele Di Proietto <[email protected]>

Acked-by: Ben Pfaff <[email protected]>

This comment made me think that there'd be a reference to "spurious
failures" in ovs-atomic.h, but there is not.  It would be kind to refer
the reader to the description of atomic_compare_exchange_strong():
> +/* Same as ovsrcu_compare_exchange(), but uses compare_exchange_strong
> + * semantics. This should be used only if it is not acceptable to have
> + * 'spurious failures' (see ovs-atomic.h)
> +*/
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to