Re: [PATCH] doc/rcu: Correct field_count field naming in examples

2019-05-25 Thread Joel Fernandes
On Wed, May 8, 2019 at 9:16 PM Paul E. McKenney wrote: [snip] > > > And this example code predates v2.6.12. ;-) > > > > > > So good eyes, but I believe that this really does reflect the ancient > > > code... > > > > > > On the other hand, would you have ideas for more modern replacement > > > exa

Re: [PATCH] doc/rcu: Correct field_count field naming in examples

2019-05-14 Thread Paul E. McKenney
On Sun, May 12, 2019 at 11:43:05PM -0400, Joel Fernandes wrote: > On Wed, May 08, 2019 at 11:16:38AM -0700, Paul E. McKenney wrote: > [snip] > > > The other example could be dentry look up which uses seqlocks for the > > > RCU-walk case? But that could be too complex. This is also something I > >

Re: [PATCH] doc/rcu: Correct field_count field naming in examples

2019-05-12 Thread Joel Fernandes
On Wed, May 08, 2019 at 11:16:38AM -0700, Paul E. McKenney wrote: [snip] > > The other example could be dentry look up which uses seqlocks for the > > RCU-walk case? But that could be too complex. This is also something I first > > learnt from the paper and then the excellent path-lookup.rst docume

Re: [PATCH] doc/rcu: Correct field_count field naming in examples

2019-05-11 Thread Andrea Parri
On Sat, May 11, 2019 at 05:41:31PM -0700, Paul E. McKenney wrote: > On Sun, May 12, 2019 at 12:11:26AM +0200, Andrea Parri wrote: > > Hi Paul, Joel, > > > > > > > On the other hand, would you have ideas for more modern replacement > > > > > examples? > > > > > > > > There are 3 cases I can see in

Re: [PATCH] doc/rcu: Correct field_count field naming in examples

2019-05-11 Thread Paul E. McKenney
On Sun, May 12, 2019 at 12:11:26AM +0200, Andrea Parri wrote: > Hi Paul, Joel, > > > > > On the other hand, would you have ideas for more modern replacement > > > > examples? > > > > > > There are 3 cases I can see in listRCU.txt: > > > (1) action taken outside of read_lock (can tolerate stale

Re: [PATCH] doc/rcu: Correct field_count field naming in examples

2019-05-11 Thread Andrea Parri
Hi Paul, Joel, > > > On the other hand, would you have ideas for more modern replacement > > > examples? > > > > There are 3 cases I can see in listRCU.txt: > > (1) action taken outside of read_lock (can tolerate stale data), no > > in-place update. > > this is the best possibl