]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Fix rcu_barrier() documentation
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 18 Apr 2013 21:25:03 +0000 (14:25 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 27 May 2013 11:59:16 +0000 (04:59 -0700)
commita1d72907df0ffebecacab1059186d11d854d4e30
treeebf996ae79f50412adafe43740421508bc322e2f
parentc6ac2c73340585482d6cc9c975ec81eacf41aa25
rcu: Fix rcu_barrier() documentation

There was a time when rcu_barrier() was guaranteed to wait for at least
a grace period, but that time ended due to energy-efficiency concerns.
So now rcu_barrier() is a no-op if there are no RCU callbacks queued in
the system.  This commit updates the documentation to reflect this change.

Now, rcu_barrier() often does wait for a grace period, so, one could
imagine some modification to rcu_barrier() to more efficiently handle
cases where both rcu_barrier() and a grace period are needed.  But this
must wait until someone shows a real-world need for a change.

Reported-by: Bob Copeland <bob@cozybit.com>
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/RCU/rcubarrier.txt