From c59177a487ba2547d00521453173f9c4a01c02f6 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Mon, 7 Aug 2017 16:56:18 +0800 Subject: [PATCH] sched/fair: fix start_cpu lockdep warning Should warn on !rcu_read_lock_sched_held. Change-Id: Id4b38e8c2dee83aedb4b7a2f19588b31b07c1116 Signed-off-by: Tao Huang --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 84c0d8084dc5..07864e77856c 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6185,7 +6185,7 @@ static int start_cpu(bool boosted) { struct root_domain *rd = cpu_rq(smp_processor_id())->rd; - RCU_LOCKDEP_WARN(rcu_read_lock_sched_held(), + RCU_LOCKDEP_WARN(!rcu_read_lock_sched_held(), "sched RCU must be held"); return boosted ? rd->max_cap_orig_cpu : rd->min_cap_orig_cpu; -- 2.34.1