Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-14 Thread Paul E. McKenney
On Sun, May 13, 2018 at 10:00:09PM -0700, Joel Fernandes wrote: > On Sun, May 13, 2018 at 07:22:06PM -0700, Paul E. McKenney wrote: > [..] > > > > > > > If you don't mind going through the if conditions in the funnel > > > > > > > locking loop > > > > > > > with me, it would be quite helpful so

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-14 Thread Paul E. McKenney
On Sun, May 13, 2018 at 10:00:09PM -0700, Joel Fernandes wrote: > On Sun, May 13, 2018 at 07:22:06PM -0700, Paul E. McKenney wrote: > [..] > > > > > > > If you don't mind going through the if conditions in the funnel > > > > > > > locking loop > > > > > > > with me, it would be quite helpful so

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-13 Thread Joel Fernandes
On Sun, May 13, 2018 at 07:22:06PM -0700, Paul E. McKenney wrote: [..] > > > > > > If you don't mind going through the if conditions in the funnel > > > > > > locking loop > > > > > > with me, it would be quite helpful so that I don't mess the code up > > > > > > and would > > > > > > also help

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-13 Thread Joel Fernandes
On Sun, May 13, 2018 at 07:22:06PM -0700, Paul E. McKenney wrote: [..] > > > > > > If you don't mind going through the if conditions in the funnel > > > > > > locking loop > > > > > > with me, it would be quite helpful so that I don't mess the code up > > > > > > and would > > > > > > also help

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-13 Thread Paul E. McKenney
On Sun, May 13, 2018 at 12:51:20PM -0700, Joel Fernandes wrote: > On Sun, May 13, 2018 at 12:09:06PM -0700, Paul E. McKenney wrote: > > On Sun, May 13, 2018 at 09:49:53AM -0700, Joel Fernandes wrote: > > > On Sun, May 13, 2018 at 08:38:42AM -0700, Paul E. McKenney wrote: > > > > On Sat, May 12,

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-13 Thread Paul E. McKenney
On Sun, May 13, 2018 at 12:51:20PM -0700, Joel Fernandes wrote: > On Sun, May 13, 2018 at 12:09:06PM -0700, Paul E. McKenney wrote: > > On Sun, May 13, 2018 at 09:49:53AM -0700, Joel Fernandes wrote: > > > On Sun, May 13, 2018 at 08:38:42AM -0700, Paul E. McKenney wrote: > > > > On Sat, May 12,

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-13 Thread Joel Fernandes
On Sun, May 13, 2018 at 12:09:06PM -0700, Paul E. McKenney wrote: > On Sun, May 13, 2018 at 09:49:53AM -0700, Joel Fernandes wrote: > > On Sun, May 13, 2018 at 08:38:42AM -0700, Paul E. McKenney wrote: > > > On Sat, May 12, 2018 at 04:53:01PM -0700, Joel Fernandes wrote: > > > > On Sat, May 12,

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-13 Thread Joel Fernandes
On Sun, May 13, 2018 at 12:09:06PM -0700, Paul E. McKenney wrote: > On Sun, May 13, 2018 at 09:49:53AM -0700, Joel Fernandes wrote: > > On Sun, May 13, 2018 at 08:38:42AM -0700, Paul E. McKenney wrote: > > > On Sat, May 12, 2018 at 04:53:01PM -0700, Joel Fernandes wrote: > > > > On Sat, May 12,

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-13 Thread Paul E. McKenney
On Sun, May 13, 2018 at 09:49:53AM -0700, Joel Fernandes wrote: > On Sun, May 13, 2018 at 08:38:42AM -0700, Paul E. McKenney wrote: > > On Sat, May 12, 2018 at 04:53:01PM -0700, Joel Fernandes wrote: > > > On Sat, May 12, 2018 at 07:44:38AM -0700, Paul E. McKenney wrote: > > > > On Sat, May 12,

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-13 Thread Paul E. McKenney
On Sun, May 13, 2018 at 09:49:53AM -0700, Joel Fernandes wrote: > On Sun, May 13, 2018 at 08:38:42AM -0700, Paul E. McKenney wrote: > > On Sat, May 12, 2018 at 04:53:01PM -0700, Joel Fernandes wrote: > > > On Sat, May 12, 2018 at 07:44:38AM -0700, Paul E. McKenney wrote: > > > > On Sat, May 12,

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-13 Thread Joel Fernandes
On Sun, May 13, 2018 at 08:38:42AM -0700, Paul E. McKenney wrote: > On Sat, May 12, 2018 at 04:53:01PM -0700, Joel Fernandes wrote: > > On Sat, May 12, 2018 at 07:44:38AM -0700, Paul E. McKenney wrote: > > > On Sat, May 12, 2018 at 07:40:02AM -0700, Paul E. McKenney wrote: > > > > On Fri, May 11,

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-13 Thread Joel Fernandes
On Sun, May 13, 2018 at 08:38:42AM -0700, Paul E. McKenney wrote: > On Sat, May 12, 2018 at 04:53:01PM -0700, Joel Fernandes wrote: > > On Sat, May 12, 2018 at 07:44:38AM -0700, Paul E. McKenney wrote: > > > On Sat, May 12, 2018 at 07:40:02AM -0700, Paul E. McKenney wrote: > > > > On Fri, May 11,

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-13 Thread Paul E. McKenney
On Sat, May 12, 2018 at 04:53:01PM -0700, Joel Fernandes wrote: > On Sat, May 12, 2018 at 07:44:38AM -0700, Paul E. McKenney wrote: > > On Sat, May 12, 2018 at 07:40:02AM -0700, Paul E. McKenney wrote: > > > On Fri, May 11, 2018 at 11:03:25PM -0700, Joel Fernandes wrote: > > > > On Sun, Apr 22,

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-13 Thread Paul E. McKenney
On Sat, May 12, 2018 at 04:53:01PM -0700, Joel Fernandes wrote: > On Sat, May 12, 2018 at 07:44:38AM -0700, Paul E. McKenney wrote: > > On Sat, May 12, 2018 at 07:40:02AM -0700, Paul E. McKenney wrote: > > > On Fri, May 11, 2018 at 11:03:25PM -0700, Joel Fernandes wrote: > > > > On Sun, Apr 22,

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-12 Thread Joel Fernandes
On Sat, May 12, 2018 at 07:44:38AM -0700, Paul E. McKenney wrote: > On Sat, May 12, 2018 at 07:40:02AM -0700, Paul E. McKenney wrote: > > On Fri, May 11, 2018 at 11:03:25PM -0700, Joel Fernandes wrote: > > > On Sun, Apr 22, 2018 at 08:03:39PM -0700, Paul E. McKenney wrote: > > > > The

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-12 Thread Joel Fernandes
On Sat, May 12, 2018 at 07:44:38AM -0700, Paul E. McKenney wrote: > On Sat, May 12, 2018 at 07:40:02AM -0700, Paul E. McKenney wrote: > > On Fri, May 11, 2018 at 11:03:25PM -0700, Joel Fernandes wrote: > > > On Sun, Apr 22, 2018 at 08:03:39PM -0700, Paul E. McKenney wrote: > > > > The

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-12 Thread Paul E. McKenney
On Sat, May 12, 2018 at 07:40:02AM -0700, Paul E. McKenney wrote: > On Fri, May 11, 2018 at 11:03:25PM -0700, Joel Fernandes wrote: > > On Sun, Apr 22, 2018 at 08:03:39PM -0700, Paul E. McKenney wrote: > > > The rcu_start_this_gp() function had a simple form of funnel locking that > > > used only

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-12 Thread Paul E. McKenney
On Sat, May 12, 2018 at 07:40:02AM -0700, Paul E. McKenney wrote: > On Fri, May 11, 2018 at 11:03:25PM -0700, Joel Fernandes wrote: > > On Sun, Apr 22, 2018 at 08:03:39PM -0700, Paul E. McKenney wrote: > > > The rcu_start_this_gp() function had a simple form of funnel locking that > > > used only

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-12 Thread Paul E. McKenney
On Fri, May 11, 2018 at 11:03:25PM -0700, Joel Fernandes wrote: > On Sun, Apr 22, 2018 at 08:03:39PM -0700, Paul E. McKenney wrote: > > The rcu_start_this_gp() function had a simple form of funnel locking that > > used only the leaves and root of the rcu_node tree, which is fine for > > systems

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-12 Thread Paul E. McKenney
On Fri, May 11, 2018 at 11:03:25PM -0700, Joel Fernandes wrote: > On Sun, Apr 22, 2018 at 08:03:39PM -0700, Paul E. McKenney wrote: > > The rcu_start_this_gp() function had a simple form of funnel locking that > > used only the leaves and root of the rcu_node tree, which is fine for > > systems

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-12 Thread Joel Fernandes
On Sun, Apr 22, 2018 at 08:03:39PM -0700, Paul E. McKenney wrote: > The rcu_start_this_gp() function had a simple form of funnel locking that > used only the leaves and root of the rcu_node tree, which is fine for > systems with only a few hundred CPUs, but sub-optimal for systems having >

Re: [tip/core/rcu,16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-05-12 Thread Joel Fernandes
On Sun, Apr 22, 2018 at 08:03:39PM -0700, Paul E. McKenney wrote: > The rcu_start_this_gp() function had a simple form of funnel locking that > used only the leaves and root of the rcu_node tree, which is fine for > systems with only a few hundred CPUs, but sub-optimal for systems having >

[PATCH tip/core/rcu 16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-04-22 Thread Paul E. McKenney
The rcu_start_this_gp() function had a simple form of funnel locking that used only the leaves and root of the rcu_node tree, which is fine for systems with only a few hundred CPUs, but sub-optimal for systems having thousands of CPUs. This commit therefore adds full-tree funnel locking. This

[PATCH tip/core/rcu 16/21] rcu: Add funnel locking to rcu_start_this_gp()

2018-04-22 Thread Paul E. McKenney
The rcu_start_this_gp() function had a simple form of funnel locking that used only the leaves and root of the rcu_node tree, which is fine for systems with only a few hundred CPUs, but sub-optimal for systems having thousands of CPUs. This commit therefore adds full-tree funnel locking. This