Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-02 Thread Paul E. McKenney
On Sun, Jul 01, 2018 at 09:49:56PM -0700, Joel Fernandes wrote: > On Sun, Jul 01, 2018 at 08:11:32PM -0700, Paul E. McKenney wrote: > > On Sun, Jul 01, 2018 at 05:35:53PM -0700, Joel Fernandes wrote: > > > On Sun, Jul 01, 2018 at 03:27:49PM -0700, Paul E. McKenney wrote: > > > [...] > > > > > >

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-02 Thread Paul E. McKenney
On Sun, Jul 01, 2018 at 09:49:56PM -0700, Joel Fernandes wrote: > On Sun, Jul 01, 2018 at 08:11:32PM -0700, Paul E. McKenney wrote: > > On Sun, Jul 01, 2018 at 05:35:53PM -0700, Joel Fernandes wrote: > > > On Sun, Jul 01, 2018 at 03:27:49PM -0700, Paul E. McKenney wrote: > > > [...] > > > > > >

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Joel Fernandes
On Sun, Jul 01, 2018 at 08:11:32PM -0700, Paul E. McKenney wrote: > On Sun, Jul 01, 2018 at 05:35:53PM -0700, Joel Fernandes wrote: > > On Sun, Jul 01, 2018 at 03:27:49PM -0700, Paul E. McKenney wrote: > > [...] > > > > > +/* > > > > > + * Report a deferred quiescent state if needed and safe to do

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Joel Fernandes
On Sun, Jul 01, 2018 at 08:11:32PM -0700, Paul E. McKenney wrote: > On Sun, Jul 01, 2018 at 05:35:53PM -0700, Joel Fernandes wrote: > > On Sun, Jul 01, 2018 at 03:27:49PM -0700, Paul E. McKenney wrote: > > [...] > > > > > +/* > > > > > + * Report a deferred quiescent state if needed and safe to do

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Paul E. McKenney
On Sun, Jul 01, 2018 at 05:35:53PM -0700, Joel Fernandes wrote: > On Sun, Jul 01, 2018 at 03:27:49PM -0700, Paul E. McKenney wrote: > [...] > > > > +/* > > > > + * Report a deferred quiescent state if needed and safe to do so. > > > > + * As with rcu_preempt_need_deferred_qs(), "safe" involves

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Paul E. McKenney
On Sun, Jul 01, 2018 at 05:35:53PM -0700, Joel Fernandes wrote: > On Sun, Jul 01, 2018 at 03:27:49PM -0700, Paul E. McKenney wrote: > [...] > > > > +/* > > > > + * Report a deferred quiescent state if needed and safe to do so. > > > > + * As with rcu_preempt_need_deferred_qs(), "safe" involves

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Paul E. McKenney
On Sun, Jul 01, 2018 at 05:37:32PM -0700, Joel Fernandes wrote: > On Sun, Jul 01, 2018 at 03:25:01PM -0700, Paul E. McKenney wrote: > [...] > > > > @@ -602,6 +589,66 @@ static void rcu_read_unlock_special(struct > > > > task_struct *t) > > > > } > > > > } > > > > > > > > +/* > > > > +

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Paul E. McKenney
On Sun, Jul 01, 2018 at 05:37:32PM -0700, Joel Fernandes wrote: > On Sun, Jul 01, 2018 at 03:25:01PM -0700, Paul E. McKenney wrote: > [...] > > > > @@ -602,6 +589,66 @@ static void rcu_read_unlock_special(struct > > > > task_struct *t) > > > > } > > > > } > > > > > > > > +/* > > > > +

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Joel Fernandes
On Sun, Jul 01, 2018 at 03:25:01PM -0700, Paul E. McKenney wrote: [...] > > > @@ -602,6 +589,66 @@ static void rcu_read_unlock_special(struct > > > task_struct *t) > > > } > > > } > > > > > > +/* > > > + * Is a deferred quiescent-state pending, and are we also not in > > > + * an RCU

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Joel Fernandes
On Sun, Jul 01, 2018 at 03:25:01PM -0700, Paul E. McKenney wrote: [...] > > > @@ -602,6 +589,66 @@ static void rcu_read_unlock_special(struct > > > task_struct *t) > > > } > > > } > > > > > > +/* > > > + * Is a deferred quiescent-state pending, and are we also not in > > > + * an RCU

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Joel Fernandes
On Sun, Jul 01, 2018 at 03:27:49PM -0700, Paul E. McKenney wrote: [...] > > > +/* > > > + * Report a deferred quiescent state if needed and safe to do so. > > > + * As with rcu_preempt_need_deferred_qs(), "safe" involves only > > > + * not being in an RCU read-side critical section. The caller

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Joel Fernandes
On Sun, Jul 01, 2018 at 03:27:49PM -0700, Paul E. McKenney wrote: [...] > > > +/* > > > + * Report a deferred quiescent state if needed and safe to do so. > > > + * As with rcu_preempt_need_deferred_qs(), "safe" involves only > > > + * not being in an RCU read-side critical section. The caller

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Paul E. McKenney
On Sun, Jul 01, 2018 at 11:38:28AM -0700, Joel Fernandes wrote: > Hi Paul, > > On Wed, Jun 27, 2018 at 01:49:14PM -0700, Paul E. McKenney wrote: > [...] > > diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h > > index c1b17f5b9361..ff5c70eae47d 100644 > > ---

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Paul E. McKenney
On Sun, Jul 01, 2018 at 11:38:28AM -0700, Joel Fernandes wrote: > Hi Paul, > > On Wed, Jun 27, 2018 at 01:49:14PM -0700, Paul E. McKenney wrote: > [...] > > diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h > > index c1b17f5b9361..ff5c70eae47d 100644 > > ---

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Paul E. McKenney
On Sun, Jul 01, 2018 at 10:40:45AM -0700, Joel Fernandes wrote: > On Wed, Jun 27, 2018 at 01:49:14PM -0700, Paul E. McKenney wrote: > > This commit defers reporting of RCU-preempt quiescent states at > > rcu_read_unlock_special() time when any of interrupts, softirq, or > > preemption are

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Paul E. McKenney
On Sun, Jul 01, 2018 at 10:40:45AM -0700, Joel Fernandes wrote: > On Wed, Jun 27, 2018 at 01:49:14PM -0700, Paul E. McKenney wrote: > > This commit defers reporting of RCU-preempt quiescent states at > > rcu_read_unlock_special() time when any of interrupts, softirq, or > > preemption are

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Joel Fernandes
Hi Paul, On Wed, Jun 27, 2018 at 01:49:14PM -0700, Paul E. McKenney wrote: [...] > diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h > index c1b17f5b9361..ff5c70eae47d 100644 > --- a/kernel/rcu/tree_plugin.h > +++ b/kernel/rcu/tree_plugin.h > @@ -371,6 +371,9 @@ static void

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Joel Fernandes
Hi Paul, On Wed, Jun 27, 2018 at 01:49:14PM -0700, Paul E. McKenney wrote: [...] > diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h > index c1b17f5b9361..ff5c70eae47d 100644 > --- a/kernel/rcu/tree_plugin.h > +++ b/kernel/rcu/tree_plugin.h > @@ -371,6 +371,9 @@ static void

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Joel Fernandes
On Wed, Jun 27, 2018 at 01:49:14PM -0700, Paul E. McKenney wrote: > This commit defers reporting of RCU-preempt quiescent states at > rcu_read_unlock_special() time when any of interrupts, softirq, or > preemption are disabled. These deferred quiescent states are reported > at a later

Re: [PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-07-01 Thread Joel Fernandes
On Wed, Jun 27, 2018 at 01:49:14PM -0700, Paul E. McKenney wrote: > This commit defers reporting of RCU-preempt quiescent states at > rcu_read_unlock_special() time when any of interrupts, softirq, or > preemption are disabled. These deferred quiescent states are reported > at a later

[PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-06-27 Thread Paul E. McKenney
This commit defers reporting of RCU-preempt quiescent states at rcu_read_unlock_special() time when any of interrupts, softirq, or preemption are disabled. These deferred quiescent states are reported at a later RCU_SOFTIRQ, context switch, idle entry, or CPU-hotplug offline operation. Of

[PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled

2018-06-27 Thread Paul E. McKenney
This commit defers reporting of RCU-preempt quiescent states at rcu_read_unlock_special() time when any of interrupts, softirq, or preemption are disabled. These deferred quiescent states are reported at a later RCU_SOFTIRQ, context switch, idle entry, or CPU-hotplug offline operation. Of