Re: [PATCH rcu 07/11] srcu: Add srcu_read_lock_lite() and srcu_read_unlock_lite()

2024-09-03 Thread Paul E. McKenney
On Tue, Sep 03, 2024 at 12:45:23PM -0700, Alexei Starovoitov wrote: > On Tue, Sep 3, 2024 at 9:33 AM Paul E. McKenney wrote: > > > > diff --git a/include/linux/srcu.h b/include/linux/srcu.h > > index 84daaa33ea0ab..4ba96e2cfa405 100644 > > --- a/include/linux/srcu.h > > +++ b/include/linux/srcu.h

Re: [PATCH rcu 07/11] srcu: Add srcu_read_lock_lite() and srcu_read_unlock_lite()

2024-09-03 Thread Alexei Starovoitov
On Tue, Sep 3, 2024 at 9:33 AM Paul E. McKenney wrote: > > diff --git a/include/linux/srcu.h b/include/linux/srcu.h > index 84daaa33ea0ab..4ba96e2cfa405 100644 > --- a/include/linux/srcu.h > +++ b/include/linux/srcu.h ... > +static inline int srcu_read_lock_lite(struct srcu_struct *ssp) > __acqu

[PATCH rcu 07/11] srcu: Add srcu_read_lock_lite() and srcu_read_unlock_lite()

2024-09-03 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