Re: [PATCH v9 3/7] srcu: Fix invoke_rcu_callbacks() segcb length adjustment

2020-11-04 Thread Neeraj Upadhyay
On 11/3/2020 7:55 PM, Joel Fernandes (Google) wrote: With earlier patches, the negative counting of the unsegmented list cannot be used to adjust the segmented one. To fix this, sample the unsegmented length in advance, and use it after CB execution to adjust the segmented list's length.

Re: [PATCH v9 3/7] srcu: Fix invoke_rcu_callbacks() segcb length adjustment

2020-11-03 Thread Frederic Weisbecker
On Tue, Nov 03, 2020 at 10:07:38AM -0500, Joel Fernandes wrote: > On Tue, Nov 03, 2020 at 03:47:14PM +0100, Frederic Weisbecker wrote: > > On Tue, Nov 03, 2020 at 09:25:59AM -0500, Joel Fernandes (Google) wrote: > > > With earlier patches, the negative counting of the unsegmented list > > > cannot

Re: [PATCH v9 3/7] srcu: Fix invoke_rcu_callbacks() segcb length adjustment

2020-11-03 Thread Paul E. McKenney
On Tue, Nov 03, 2020 at 10:07:38AM -0500, Joel Fernandes wrote: > On Tue, Nov 03, 2020 at 03:47:14PM +0100, Frederic Weisbecker wrote: > > On Tue, Nov 03, 2020 at 09:25:59AM -0500, Joel Fernandes (Google) wrote: > > > With earlier patches, the negative counting of the unsegmented list > > > cannot

Re: [PATCH v9 3/7] srcu: Fix invoke_rcu_callbacks() segcb length adjustment

2020-11-03 Thread Joel Fernandes
On Tue, Nov 03, 2020 at 03:47:14PM +0100, Frederic Weisbecker wrote: > On Tue, Nov 03, 2020 at 09:25:59AM -0500, Joel Fernandes (Google) wrote: > > With earlier patches, the negative counting of the unsegmented list > > cannot be used to adjust the segmented one. To fix this, sample the > >

Re: [PATCH v9 3/7] srcu: Fix invoke_rcu_callbacks() segcb length adjustment

2020-11-03 Thread Joel Fernandes
On Tue, Nov 03, 2020 at 03:47:14PM +0100, Frederic Weisbecker wrote: > On Tue, Nov 03, 2020 at 09:25:59AM -0500, Joel Fernandes (Google) wrote: > > With earlier patches, the negative counting of the unsegmented list > > cannot be used to adjust the segmented one. To fix this, sample the > >

Re: [PATCH v9 3/7] srcu: Fix invoke_rcu_callbacks() segcb length adjustment

2020-11-03 Thread Frederic Weisbecker
On Tue, Nov 03, 2020 at 09:25:59AM -0500, Joel Fernandes (Google) wrote: > With earlier patches, the negative counting of the unsegmented list > cannot be used to adjust the segmented one. To fix this, sample the > unsegmented length in advance, and use it after CB execution to adjust > the

[PATCH v9 3/7] srcu: Fix invoke_rcu_callbacks() segcb length adjustment

2020-11-03 Thread Joel Fernandes (Google)
With earlier patches, the negative counting of the unsegmented list cannot be used to adjust the segmented one. To fix this, sample the unsegmented length in advance, and use it after CB execution to adjust the segmented list's length. Reviewed-by: Frederic Weisbecker Suggested-by: Frederic