From: Paul E. McKenney Date: Thu, 12 Jan 2012 21:49:19 +0000 (-0800) Subject: rcu: Make rcu_sleep_check() also check rcu_lock_map X-Git-Tag: v3.4-rc1~194^2^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50406b98b6372e7de21d903d2cf3914e9d64e094;p=pandora-kernel.git rcu: Make rcu_sleep_check() also check rcu_lock_map Although it is OK to be preempted in an RCU read-side critical section for TREE_PREEMPT_RCU, it is definitely not OK to be preempted, block, or might_sleep() within an RCU read-side critical section for TREE_RCU. Unfortunately, rcu_might_sleep() currently only checks for RCU-bh and RCU-sched read-side critical sections. This commit therefore makes rcu_might_sleep() check for RCU read-side critical sections, but only in TREE_RCU builds. Signed-off-by: Paul E. McKenney Signed-off-by: Paul E. McKenney --- Reading git-diff-tree failed