diff options
author | Uladzislau Rezki (Sony) <urezki@gmail.com> | 2025-04-22 19:38:30 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2025-04-23 12:17:04 -0700 |
commit | 5c9e0062989e5d2bd77b75c432b54e8ec7689bc7 (patch) | |
tree | 3b65e7f8a5467a9bfe9ce3ccc0811ad22061caaa | |
parent | 730c0a8ee42905f59c82bc3c2f8b3616c18897bb (diff) |
tools/memory-model/Documentation: Fix SRCU section in explanation.txt
The SRCU read-side critical sections describes the difference between
srcu_down_read()/srcu_up_read() and srcu_read_lock()/srcu_read_unlock()
in a way that a last pair must occur on the same CPU.
This is not true, the srcu_read_unlock() can happen on any CPU, but it
must be performed by the same task that invoked srcu_read_lock().
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rw-r--r-- | tools/memory-model/Documentation/explanation.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/memory-model/Documentation/explanation.txt b/tools/memory-model/Documentation/explanation.txt index 6dc8b3642458..34aa3172071b 100644 --- a/tools/memory-model/Documentation/explanation.txt +++ b/tools/memory-model/Documentation/explanation.txt @@ -1896,7 +1896,7 @@ following respects: 3. The srcu_down_read() and srcu_up_read() primitives work exactly like srcu_read_lock() and srcu_read_unlock(), except - that matching calls don't have to execute on the same CPU. + that matching calls don't have to execute within the same context. (The names are meant to be suggestive of operations on semaphores.) Since the matching is determined by the domain pointer and index value, these primitives make it possible for |