Re: [PATCH rcu 08/15] srcu: Add srcu_read_lock_lite() and srcu_read_unlock_lite()

2024-11-11 Thread Paul E. McKenney
On Mon, Nov 11, 2024 at 09:46:22AM -0800, Andrii Nakryiko wrote: > On Mon, Nov 11, 2024 at 7:17 AM Paul E. McKenney wrote: > > > > On Mon, Nov 11, 2024 at 04:47:49PM +0530, Neeraj Upadhyay wrote: > > > > > > > +/** > > > > + * srcu_read_unlock_lite - unregister a old reader from an > > > > SRCU-p

Re: [PATCH rcu 08/15] srcu: Add srcu_read_lock_lite() and srcu_read_unlock_lite()

2024-11-11 Thread Andrii Nakryiko
On Mon, Nov 11, 2024 at 7:17 AM Paul E. McKenney wrote: > > On Mon, Nov 11, 2024 at 04:47:49PM +0530, Neeraj Upadhyay wrote: > > > > > +/** > > > + * srcu_read_unlock_lite - unregister a old reader from an > > > SRCU-protected structure. > > > + * @ssp: srcu_struct in which to unregister the old

Re: [PATCH rcu 08/15] srcu: Add srcu_read_lock_lite() and srcu_read_unlock_lite()

2024-11-11 Thread Paul E. McKenney
On Mon, Nov 11, 2024 at 04:47:49PM +0530, Neeraj Upadhyay wrote: > > > +/** > > + * srcu_read_unlock_lite - unregister a old reader from an SRCU-protected > > structure. > > + * @ssp: srcu_struct in which to unregister the old reader. > > + * @idx: return value from corresponding srcu_read_lock(

Re: [PATCH rcu 08/15] srcu: Add srcu_read_lock_lite() and srcu_read_unlock_lite()

2024-11-11 Thread Neeraj Upadhyay
> +/** > + * srcu_read_unlock_lite - unregister a old reader from an SRCU-protected > structure. > + * @ssp: srcu_struct in which to unregister the old reader. > + * @idx: return value from corresponding srcu_read_lock(). > + * > + * Exit a light-weight SRCU read-side critical section. > + */ >

Re: [PATCH rcu 08/15] srcu: Add srcu_read_lock_lite() and srcu_read_unlock_lite()

2024-11-04 Thread Paul E. McKenney
On Tue, Nov 05, 2024 at 12:27:42AM +0100, Frederic Weisbecker wrote: > Le Tue, Oct 15, 2024 at 09:11:05AM -0700, Paul E. McKenney a écrit : > > This patch adds srcu_read_lock_lite() and srcu_read_unlock_lite(), which > > dispense with the read-side smp_mb() but also are restricted to code > > regio

Re: [PATCH rcu 08/15] srcu: Add srcu_read_lock_lite() and srcu_read_unlock_lite()

2024-11-04 Thread Frederic Weisbecker
Le Tue, Oct 15, 2024 at 09:11:05AM -0700, Paul E. McKenney a écrit : > This patch adds srcu_read_lock_lite() and srcu_read_unlock_lite(), which > dispense with the read-side smp_mb() but also are restricted to code > regions that RCU is watching. If a given srcu_struct structure uses > srcu_read_l

[PATCH rcu 08/15] srcu: Add srcu_read_lock_lite() and srcu_read_unlock_lite()

2024-10-15 Thread Paul E. McKenney
This patch adds srcu_read_lock_lite() and srcu_read_unlock_lite(), which dispense with the read-side smp_mb() but also are restricted to code regions that RCU is watching. If a given srcu_struct structure uses srcu_read_lock_lite() and srcu_read_unlock_lite(), it is not permitted to use any other