Skip to content

Commit 5c9e006

Browse files
urezkipaulmckrcu
authored andcommitted
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) <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 730c0a8 commit 5c9e006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/memory-model/Documentation/explanation.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,7 @@ following respects:
18961896

18971897
3. The srcu_down_read() and srcu_up_read() primitives work
18981898
exactly like srcu_read_lock() and srcu_read_unlock(), except
1899-
that matching calls don't have to execute on the same CPU.
1899+
that matching calls don't have to execute within the same context.
19001900
(The names are meant to be suggestive of operations on
19011901
semaphores.) Since the matching is determined by the domain
19021902
pointer and index value, these primitives make it possible for

0 commit comments

Comments
 (0)