Re: [ovs-dev] [RFC 04/14] revalidator: Protect ukeys with a mutex.

2014-08-24 Thread Joe Stringer
On 23 August 2014 08:01, Ben Pfaff wrote: > On Thu, Aug 21, 2014 at 05:41:59PM +1200, Joe Stringer wrote: > > Currently, ukeys are protected during revalidator_sweep__() as only one > > thread accesses the ukey at a time. This is ensured using barriers: > > all revalidators will be in the GC phas

Re: [ovs-dev] [RFC 04/14] revalidator: Protect ukeys with a mutex.

2014-08-22 Thread Ben Pfaff
On Thu, Aug 21, 2014 at 05:41:59PM +1200, Joe Stringer wrote: > Currently, ukeys are protected during revalidator_sweep__() as only one > thread accesses the ukey at a time. This is ensured using barriers: > all revalidators will be in the GC phase, so they will only access their > own ukey collect

[ovs-dev] [RFC 04/14] revalidator: Protect ukeys with a mutex.

2014-08-20 Thread Joe Stringer
Currently, ukeys are protected during revalidator_sweep__() as only one thread accesses the ukey at a time. This is ensured using barriers: all revalidators will be in the GC phase, so they will only access their own ukey collection. A future patch will change the access patterns to allow these uk