summaryrefslogtreecommitdiffstats
path: root/kernel/rcutiny_plugin.h
diff options
context:
space:
mode:
authorFrederic Weisbecker2012-01-04 20:44:57 +0100
committerPaul E. McKenney2012-02-21 18:03:22 +0100
commit18fec7d8758dd416904da205375e6fa667defc80 (patch)
tree768f505120e075d9f93b83d0657dcaf712ea18e0 /kernel/rcutiny_plugin.h
parentrcu: Bring RTFP.txt up to date. (diff)
downloadkernel-qcow2-linux-18fec7d8758dd416904da205375e6fa667defc80.tar.gz
kernel-qcow2-linux-18fec7d8758dd416904da205375e6fa667defc80.tar.xz
kernel-qcow2-linux-18fec7d8758dd416904da205375e6fa667defc80.zip
rcu: Improve synchronize_rcu() diagnostics
Although TREE_PREEMPT_RCU indirectly uses might_sleep() to detect illegal use of synchronize_sched() and synchronize_rcu_bh() from within an RCU read-side critical section, this might_sleep() check is bypassed when there is only a single CPU (for example, when running an SMP kernel on a single-CPU system). This patch therefore adds a might_sleep() call to the rcu_blocking_is_gp() check that is unconditionally invoked from both synchronize_sched() and synchronize_rcu_bh(). Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutiny_plugin.h')
0 files changed, 0 insertions, 0 deletions