Re: [ovs-dev] [PATCH v2 1/5] ovs-atomic: Use explicit memory order for ovs_refcount.

2014-07-07 Thread Ben Pfaff
On Fri, Jul 04, 2014 at 07:21:15AM -0700, Jarno Rajahalme wrote: > Use explicit variants of atomic operations for the ovs_refcount to > avoid the overhead of the default memory_order_seq_cst. > > Adding a reference requires no memory ordering, as the calling thread > is already assumed to have pro

[ovs-dev] [PATCH v2 1/5] ovs-atomic: Use explicit memory order for ovs_refcount.

2014-07-04 Thread Jarno Rajahalme
Use explicit variants of atomic operations for the ovs_refcount to avoid the overhead of the default memory_order_seq_cst. Adding a reference requires no memory ordering, as the calling thread is already assumed to have protected access to the object being reference counted. Hence, memory_order_r