rcu head introduce rcu head init on stack
authorMathieu Desnoyers <[email protected]>
Sat, 17 Apr 2010 12:48:39 +0000 (08:48 -0400)
committerPaul E. McKenney <[email protected]>
Mon, 10 May 2010 23:53:55 +0000 (16:53 -0700)
PEM:
o     Would it be possible to make this bisectable as follows?

      a.      Insert a new patch after current patch 4/6 that
              defines destroy_rcu_head_on_stack(),
              init_rcu_head_on_stack(), and init_rcu_head() with
              their !CONFIG_DEBUG_OBJECTS_RCU_HEAD definitions.

This patch performs this transition.

Signed-off-by: Mathieu Desnoyers <[email protected]>
CC: "Paul E. McKenney" <[email protected]>
CC: David S. Miller <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: Alexey Dobriyan <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
include/linux/rcupdate.h

index 23be3a7025162ec856dfc378d9d926cfe880a335..b653b4aaa8a6332c8d783f2cd9afb7c8882028b4 100644 (file)
@@ -79,6 +79,14 @@ extern void rcu_init(void);
        (ptr)->next = NULL; (ptr)->func = NULL; \
 } while (0)
 
+static inline void init_rcu_head_on_stack(struct rcu_head *head)
+{
+}
+
+static inline void destroy_rcu_head_on_stack(struct rcu_head *head)
+{
+}
+
 #ifdef CONFIG_DEBUG_LOCK_ALLOC
 
 extern struct lockdep_map rcu_lock_map;