Re: [PATCH] Documentation: Add refcount analogy to What is RCU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 20 Oct 2021, Matthew Wilcox wrote:
> On Wed, Oct 20, 2021 at 10:05:08AM +1100, NeilBrown wrote:
> 
> some more minor glitches ...
> 
> > +7.  ANALOGY WITH REFERENCE COUNTING
> > +-----------------------------------
> > +
> > +Many uses of RCU do not look so much like reader-writer locking as
> > +illustrated by the previous section and so it can be helpful to have
> > +other analogies to draw on.  One such analogy involves thinking of its
> > +behaviour as similar to reference counting: RCU effectively provides a
> > +temporary protected reference on "everything".
> 
> This paragraph is a bit clunky.  How about:
> 
> The reader-writer analogy (illustrated by the previous section) is not
> always the easiest way to think about using RCU.  Another analogy which
> can be helpful is to consider RCU as providing an effective reference
> count on everything which is protected by RCU.

Yes, much better.  I chose "best" rather than "easiest" though.

Other changes Incorporated too.  Result to follow.

Thanks,
NeilBrown



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux