Re: [PATCH tip/core/rcu 2/3] rcu: Provide polling interfaces for Tiny RCU grace periods

2021-03-23 Thread Paul E. McKenney
On Tue, Mar 23, 2021 at 03:02:07PM +0100, Frederic Weisbecker wrote: > On Mon, Mar 22, 2021 at 12:45:22PM -0700, Paul E. McKenney wrote: > > On Mon, Mar 22, 2021 at 08:00:35PM +0100, Frederic Weisbecker wrote: > > > But poll_state_synchronize_rcu() checks that the gp_num has changed, > > > which

Re: [PATCH tip/core/rcu 2/3] rcu: Provide polling interfaces for Tiny RCU grace periods

2021-03-23 Thread Frederic Weisbecker
On Mon, Mar 22, 2021 at 12:45:22PM -0700, Paul E. McKenney wrote: > On Mon, Mar 22, 2021 at 08:00:35PM +0100, Frederic Weisbecker wrote: > > But poll_state_synchronize_rcu() checks that the gp_num has changed, > > which is not needed for cond_synchronize_rcu() since this it is > > only allowed to

Re: [PATCH tip/core/rcu 2/3] rcu: Provide polling interfaces for Tiny RCU grace periods

2021-03-22 Thread Paul E. McKenney
On Mon, Mar 22, 2021 at 08:00:35PM +0100, Frederic Weisbecker wrote: > On Mon, Mar 22, 2021 at 08:47:44AM -0700, Paul E. McKenney wrote: > > On Sun, Mar 21, 2021 at 11:28:55PM +0100, Frederic Weisbecker wrote: > > > On Wed, Mar 03, 2021 at 04:26:31PM -0800, paul...@kernel.org wrote: > > > > From:

Re: [PATCH tip/core/rcu 2/3] rcu: Provide polling interfaces for Tiny RCU grace periods

2021-03-22 Thread Frederic Weisbecker
On Mon, Mar 22, 2021 at 08:47:44AM -0700, Paul E. McKenney wrote: > On Sun, Mar 21, 2021 at 11:28:55PM +0100, Frederic Weisbecker wrote: > > On Wed, Mar 03, 2021 at 04:26:31PM -0800, paul...@kernel.org wrote: > > > From: "Paul E. McKenney" > > > > > > There is a need for a non-blocking polling

Re: [PATCH tip/core/rcu 2/3] rcu: Provide polling interfaces for Tiny RCU grace periods

2021-03-22 Thread Paul E. McKenney
On Sun, Mar 21, 2021 at 11:28:55PM +0100, Frederic Weisbecker wrote: > On Wed, Mar 03, 2021 at 04:26:31PM -0800, paul...@kernel.org wrote: > > From: "Paul E. McKenney" > > > > There is a need for a non-blocking polling interface for RCU grace > > periods, so this commit supplies

Re: [PATCH tip/core/rcu 2/3] rcu: Provide polling interfaces for Tiny RCU grace periods

2021-03-21 Thread Frederic Weisbecker
On Wed, Mar 03, 2021 at 04:26:31PM -0800, paul...@kernel.org wrote: > From: "Paul E. McKenney" > > There is a need for a non-blocking polling interface for RCU grace > periods, so this commit supplies start_poll_synchronize_rcu() and > poll_state_synchronize_rcu() for this purpose. Note that

[PATCH tip/core/rcu 2/3] rcu: Provide polling interfaces for Tiny RCU grace periods

2021-03-03 Thread paulmck
From: "Paul E. McKenney" There is a need for a non-blocking polling interface for RCU grace periods, so this commit supplies start_poll_synchronize_rcu() and poll_state_synchronize_rcu() for this purpose. Note that the existing get_state_synchronize_rcu() may be used if future grace periods are