docs: memory-barriers: Add note on compiler transformation and address deps
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Fri, 4 Aug 2023 16:27:45 +0000 (16:27 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 9 Oct 2023 16:40:53 +0000 (09:40 -0700)
commit1566bf4b13daa66e3de6fdbc77ee3995df5a9064
tree00aa5232c0dc62d326ee85ce4eb0f20c1465b9cc
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
docs: memory-barriers: Add note on compiler transformation and address deps

The compiler has the ability to cause misordering by destroying
address-dependency barriers if comparison operations are used. Add a
note about this to memory-barriers.txt in the beginning of both the
historical address-dependency sections and point to rcu-dereference.rst
for more information.

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Will Deacon <will@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Jade Alglave <j.alglave@ucl.ac.uk>
Cc: Luc Maranget <luc.maranget@inria.fr>
Cc: Akira Yokosawa <akiyks@gmail.com>
Cc: Daniel Lustig <dlustig@nvidia.com>
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Reviewed-by: Andrea Parri <parri.andrea@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/memory-barriers.txt