diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2012-11-29 09:46:06 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-02-08 00:15:00 +0100 |
commit | 511a0868bed6694512348fc177cdfaf3fd97d0bb (patch) | |
tree | 2875f25752a987492ce88169177dfae857542d9d /kernel/srcu.c | |
parent | srcu: Remove checks preventing offline CPUs from calling srcu_read_lock() (diff) | |
download | linux-511a0868bed6694512348fc177cdfaf3fd97d0bb.tar.xz linux-511a0868bed6694512348fc177cdfaf3fd97d0bb.zip |
srcu: Remove checks preventing idle CPUs from calling srcu_read_lock()
SRCU has its own statemachine and no longer relies on normal RCU.
Its read-side critical section can now be used by an offline CPU, so this
commit removes the check and the comments, reverting the SRCU portion
of ff195cb6 (rcu: Warn when srcu_read_lock() is used in an extended
quiescent state).
It also makes the codes match the comments in whatisRCU.txt:
g. Do you need read-side critical sections that are respected
even though they are in the middle of the idle loop, during
user-mode execution, or on an offlined CPU? If so, SRCU is the
only choice that will work for you.
[ paulmck: There is at least one remaining issue, namely use of lockdep
with tracing enabled. ]
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/srcu.c')
0 files changed, 0 insertions, 0 deletions