linux-sg2042/kernel/rcu
Paul E. McKenney 78e4bc34e5 rcu: Fix and comment ordering around wait_event()
It is all too easy to forget that wait_event() does not necessarily
imply a full memory barrier.  The case where it does not is where the
condition transitions to true just as wait_event() starts execution.
This is actually a feature: The standard use of wait_event() involves
locking, in which case the locks provide the needed ordering (you hold a
lock across the wake_up() and acquire that same lock after wait_event()
returns).

Given that I did forget that wait_event() does not necessarily imply a
full memory barrier in one case, this commit fixes that case.  This commit
also adds comments calling out the placement of existing memory barriers
relied on by wait_event() calls.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2013-12-03 10:10:18 -08:00
..
Makefile
rcu.h
srcu.c
tiny.c This batch of changes is mostly clean ups and small bug fixes. 2013-11-16 12:23:18 -08:00
tiny_plugin.h
torture.c rcu: Fix and comment ordering around wait_event() 2013-12-03 10:10:18 -08:00
tree.c rcu: Fix and comment ordering around wait_event() 2013-12-03 10:10:18 -08:00
tree.h rcu: Kick CPU halfway to RCU CPU stall warning 2013-12-03 10:10:18 -08:00
tree_plugin.h rcu: Fix and comment ordering around wait_event() 2013-12-03 10:10:18 -08:00
tree_trace.c
update.c