[PATCH 2/3] tracepoint: add __rcu annotation

Previous thread: [PATCH 3/3] kvm: add __rcu annotations by Lai Jiangshan on Tuesday, January 4, 2011 - 1:06 am. (1 message)

Next thread: [PATCH RESEND] cgroups: fix incorrect using rcu_dereference() in cgroup_subsys_state() by Lai Jiangshan on Tuesday, January 4, 2011 - 1:18 am. (2 messages)
From: Lai Jiangshan
Date: Tuesday, January 4, 2011 - 1:06 am

Add __rcu annotation to :
	(struct tracepoint)->funcs

signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index d3e4f87..e0e400d 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -32,7 +32,7 @@ struct tracepoint {
 	int state;			/* State. */
 	void (*regfunc)(void);
 	void (*unregfunc)(void);
-	struct tracepoint_func *funcs;
+	struct tracepoint_func __rcu *funcs;
 } __attribute__((aligned(32)));		/*
 					 * Aligned on 32 bytes because it is
 					 * globally visible and gcc happily
--

Previous thread: [PATCH 3/3] kvm: add __rcu annotations by Lai Jiangshan on Tuesday, January 4, 2011 - 1:06 am. (1 message)

Next thread: [PATCH RESEND] cgroups: fix incorrect using rcu_dereference() in cgroup_subsys_state() by Lai Jiangshan on Tuesday, January 4, 2011 - 1:18 am. (2 messages)