]> git.baikalelectronics.ru Git - kernel.git/commit
memory-barriers: Fix description of 2-legged-if-based control dependencies
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 13 Aug 2014 22:40:02 +0000 (15:40 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 7 Sep 2014 23:15:53 +0000 (16:15 -0700)
commit3cf31127e1e92311e7f687089fcddad5a228506e
tree92eef2cfcedc013b96009f099b52f99301bcb499
parentac376d56f051d94aef3e990a6972478c889ab9a2
memory-barriers: Fix description of 2-legged-if-based control dependencies

Sad to say, current compilers really will hoist identical stores from both
branches of an "if" statement to precede the conditional.  This commit
therefore updates the description of control dependencies to reflect this
ugly reality.

Reported-by: Pranith Kumar <bobby.prani@gmail.com>
Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/memory-barriers.txt