rcu/segcblist: Add additional comments to explain smp_mb()
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Tue, 3 Nov 2020 14:26:03 +0000 (09:26 -0500)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Jan 2021 00:23:23 +0000 (16:23 -0800)
commitc2e13112e830c06825339cbadf0b3bc2bdb9a716
treed07a64c8298ff3faea94c2c7d629b5db008f7d4f
parent6bc335828056f3b301a3deadda782de4e8f0db08
rcu/segcblist: Add additional comments to explain smp_mb()

One counter-intuitive property of RCU is the fact that full memory
barriers are needed both before and after updates to the full
(non-segmented) length.  This patch therefore helps to assist the
reader's intuition by adding appropriate comments.

[ paulmck:  Wordsmithing. ]
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcu_segcblist.c