Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended quiescent state enter/exit operations

2017-01-16 Thread Paul E. McKenney
On Mon, Jan 16, 2017 at 11:25:38AM -0800, Josh Triplett wrote: > On Mon, Jan 16, 2017 at 03:34:20AM -0800, Paul E. McKenney wrote: > > On Sun, Jan 15, 2017 at 11:47:35PM -0800, Josh Triplett wrote: > > > On Sat, Jan 14, 2017 at 12:54:42AM -0800, Paul E. McKenney wrote: [ . . . ] > > > > @@ -693,7

Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended quiescent state enter/exit operations

2017-01-16 Thread Paul E. McKenney
On Mon, Jan 16, 2017 at 01:01:11PM -0800, Paul E. McKenney wrote: > On Mon, Jan 16, 2017 at 05:43:37PM +0100, Peter Zijlstra wrote: > > On Sat, Jan 14, 2017 at 12:54:42AM -0800, Paul E. McKenney wrote: > > > /* > > > + * Record entry into an extended quiescent state. This is only to be > > > + *

Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended quiescent state enter/exit operations

2017-01-16 Thread Paul E. McKenney
On Mon, Jan 16, 2017 at 05:43:37PM +0100, Peter Zijlstra wrote: > On Sat, Jan 14, 2017 at 12:54:42AM -0800, Paul E. McKenney wrote: > > /* > > + * Record entry into an extended quiescent state. This is only to be > > + * called when not already in an extended quiescent state. > > + */ > > +static

Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended quiescent state enter/exit operations

2017-01-16 Thread Josh Triplett
On Mon, Jan 16, 2017 at 03:34:20AM -0800, Paul E. McKenney wrote: > On Sun, Jan 15, 2017 at 11:47:35PM -0800, Josh Triplett wrote: > > On Sat, Jan 14, 2017 at 12:54:42AM -0800, Paul E. McKenney wrote: > > > This commit is the third step towards full abstraction of all accesses > > > to the ->dyntic

Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended quiescent state enter/exit operations

2017-01-16 Thread Peter Zijlstra
On Sat, Jan 14, 2017 at 12:54:42AM -0800, Paul E. McKenney wrote: > /* > + * Record entry into an extended quiescent state. This is only to be > + * called when not already in an extended quiescent state. > + */ > +static void rcu_dynticks_eqs_enter(void) > +{ > + struct rcu_dynticks *rdtp =

Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended quiescent state enter/exit operations

2017-01-16 Thread Paul E. McKenney
On Sun, Jan 15, 2017 at 11:47:35PM -0800, Josh Triplett wrote: > On Sat, Jan 14, 2017 at 12:54:42AM -0800, Paul E. McKenney wrote: > > This commit is the third step towards full abstraction of all accesses > > to the ->dynticks counter, implementing the previously open-coded atomic > > add of 1 and

Re: [PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended quiescent state enter/exit operations

2017-01-15 Thread Josh Triplett
On Sat, Jan 14, 2017 at 12:54:42AM -0800, Paul E. McKenney wrote: > This commit is the third step towards full abstraction of all accesses > to the ->dynticks counter, implementing the previously open-coded atomic > add of 1 and entry checks in a new rcu_dynticks_eqs_enter() function, and > the sam

[PATCH tip/core/rcu 3/6] rcu: Abstract dynticks extended quiescent state enter/exit operations

2017-01-14 Thread Paul E. McKenney
This commit is the third step towards full abstraction of all accesses to the ->dynticks counter, implementing the previously open-coded atomic add of 1 and entry checks in a new rcu_dynticks_eqs_enter() function, and the same but with exit checks in a new rcu_dynticks_eqs_exit() function. This abs