]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/memory-model/Documentation: Fix SRCU section in explanation.txt
authorUladzislau Rezki (Sony) <urezki@gmail.com>
Tue, 22 Apr 2025 17:38:30 +0000 (19:38 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 23 Apr 2025 19:17:04 +0000 (12:17 -0700)
commit5c9e0062989e5d2bd77b75c432b54e8ec7689bc7
tree3b65e7f8a5467a9bfe9ce3ccc0811ad22061caaa
parent730c0a8ee42905f59c82bc3c2f8b3616c18897bb
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>
tools/memory-model/Documentation/explanation.txt