Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 20 Mar 2019 20:34:26 -0400
From: "Joel Fernandes (Google)" <>
Cc: "Joel Fernandes (Google)" <>,
	"Paul E . McKenney" <>,
	Ingo Molnar <>,
	Josh Triplett <>,,,,
	Lai Jiangshan <>,
	Luc Van Oostenryck <>,
	Mathieu Desnoyers <>,
	Morten Rasmussen <>,
	Peter Zijlstra <>,,
	Steven Rostedt <>
Subject: [PATCH v2 4/4] sched: Annotate perf_domain pointer with __rcu

This fixes the following sparse errors in sched/fair.c:

fair.c:6506:14: error: incompatible types in comparison expression
fair.c:8642:21: error: incompatible types in comparison expression

Using __rcu will also help sparse catch any future bugs.

[From an RCU perspective]
Reviewed-by: Paul E. McKenney <>
Signed-off-by: Joel Fernandes (Google) <>
 kernel/sched/sched.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 2b452d68ab2e..b52ed1ada0be 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -780,7 +780,7 @@ struct root_domain {
 	 * NULL-terminated list of performance domains intersecting with the
 	 * CPUs of the rd. Protected by RCU.
-	struct perf_domain	*pd;
+	struct perf_domain __rcu *pd;
 extern struct root_domain def_root_domain;

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.