summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-10-05 16:50:57 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-11-28 18:51:19 -0500
commit914955e18ca09fc404d7fc3614bb04c96a03692c (patch)
treeec56a73f3e1c85cf10982e27cd331ab303b21519 /kernel/rcu/tree.c
parentdec98900eae1e22467182e58688abe5fae98bd5f (diff)
rcu: Stop duplicating lockdep checks in RCU's idle-entry code
The three RCU_LOCKDEP_WARN() calls in rcu_eqs_enter_common() are redundant with other lockdep checks, so this commit removes them. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r--kernel/rcu/tree.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 5febb76809f6..80cada11f544 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -781,17 +781,6 @@ static void rcu_eqs_enter_common(bool user)
781 rdtp->dynticks_nesting = 0; 781 rdtp->dynticks_nesting = 0;
782 rcu_dynticks_eqs_enter(); 782 rcu_dynticks_eqs_enter();
783 rcu_dynticks_task_enter(); 783 rcu_dynticks_task_enter();
784
785 /*
786 * It is illegal to enter an extended quiescent state while
787 * in an RCU read-side critical section.
788 */
789 RCU_LOCKDEP_WARN(lock_is_held(&rcu_lock_map),
790 "Illegal idle entry in RCU read-side critical section.");
791 RCU_LOCKDEP_WARN(lock_is_held(&rcu_bh_lock_map),
792 "Illegal idle entry in RCU-bh read-side critical section.");
793 RCU_LOCKDEP_WARN(lock_is_held(&rcu_sched_lock_map),
794 "Illegal idle entry in RCU-sched read-side critical section.");
795} 784}
796 785
797/* 786/*