Re: [RFC][PATCH 1/5] rcu: Create rcu_sync infrastructure

2015-05-31 Thread Paul E. McKenney
On Sat, May 30, 2015 at 09:16:52PM +0200, Oleg Nesterov wrote: > On 05/30, Paul E. McKenney wrote: > > > > On Tue, May 26, 2015 at 01:43:57PM +0200, Peter Zijlstra wrote: > > > From: Oleg Nesterov > > > > > > It is functionally equivalent to > > > > > > struct rcu_sync_struct { > > >

Re: [RFC][PATCH 1/5] rcu: Create rcu_sync infrastructure

2015-05-30 Thread Oleg Nesterov
On 05/30, Oleg Nesterov wrote: > > On 05/30, Paul E. McKenney wrote: > > > > On Tue, May 26, 2015 at 01:43:57PM +0200, Peter Zijlstra wrote: > > > From: Oleg Nesterov > > > > > > It is functionally equivalent to > > > > > > struct rcu_sync_struct { > > > atomic_t counter; >

Re: [RFC][PATCH 1/5] rcu: Create rcu_sync infrastructure

2015-05-30 Thread Oleg Nesterov
On 05/30, Paul E. McKenney wrote: > > On Tue, May 26, 2015 at 01:43:57PM +0200, Peter Zijlstra wrote: > > From: Oleg Nesterov > > > > It is functionally equivalent to > > > > struct rcu_sync_struct { > > atomic_t counter; > > }; > > > > static inline bool rc

Re: [RFC][PATCH 1/5] rcu: Create rcu_sync infrastructure

2015-05-30 Thread Paul E. McKenney
On Tue, May 26, 2015 at 01:43:57PM +0200, Peter Zijlstra wrote: > From: Oleg Nesterov > > It is functionally equivalent to > > struct rcu_sync_struct { > atomic_t counter; > }; > > static inline bool rcu_sync_is_idle(struct rcu_sync_struct *rss) >

[RFC][PATCH 1/5] rcu: Create rcu_sync infrastructure

2015-05-26 Thread Peter Zijlstra
From: Oleg Nesterov It is functionally equivalent to struct rcu_sync_struct { atomic_t counter; }; static inline bool rcu_sync_is_idle(struct rcu_sync_struct *rss) { return atomic_read(&rss->counter) == 0; } static