doc: Add refcount analogy to What is RCU
authorNeilBrown <neilb@suse.de>
Tue, 26 Oct 2021 04:53:38 +0000 (15:53 +1100)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 1 Dec 2021 01:23:06 +0000 (17:23 -0800)
commit7c0be9f8901fed7bfe44cb3f8f7412b010209526
tree943d08f024bdec1ecbcd150c4695218d35d4a54f
parentdb4cb76861282604cf14fb362f507bb587d676ba
doc: Add refcount analogy to What is RCU

The reader-writer-lock analogy is a useful way to think about RCU, but
it is not always applicable.  It is useful to have other analogies to
work with, and particularly to emphasise that no single analogy is
perfect.

This patch add a "RCU as reference count" to the "what is RCU" document.

See https://lwn.net/Articles/872559/

[ paulmck: Apply Akira Yokosawa feedback. ]
Reviewed-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/RCU/whatisRCU.rst