[PATCH tip/core/rcu 19/23] rcu head introduce rcu head init on stack

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Tuesday, April 20, 2010 - 2:44 pm

From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

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 <mathieu.desnoyers@efficios.com>
CC: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
CC: David S. Miller <davem@davemloft.net>
CC: akpm@linux-foundation.org
CC: mingo@elte.hu
CC: laijs@cn.fujitsu.com
CC: dipankar@in.ibm.com
CC: josh@joshtriplett.org
CC: dvhltc@us.ibm.com
CC: niv@us.ibm.com
CC: tglx@linutronix.de
CC: peterz@infradead.org
CC: rostedt@goodmis.org
CC: Valdis.Kletnieks@vt.edu
CC: dhowells@redhat.com
CC: eric.dumazet@gmail.com
CC: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
---
 include/linux/rcupdate.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h
index 6e6f851..c63372b 100644
--- a/include/linux/rcupdate.h
+++ b/include/linux/rcupdate.h
@@ -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;
-- 
1.7.0

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH tip/core/rcu 0/23] v3 patches queued for 2.6.35, Paul E. McKenney, (Tue Apr 20, 2:44 pm)
[PATCH tip/core/rcu 02/23] rcu: make dead code really dead, Paul E. McKenney, (Tue Apr 20, 2:44 pm)
[PATCH tip/core/rcu 03/23] rcu: move some code from macro ..., Paul E. McKenney, (Tue Apr 20, 2:44 pm)
[PATCH tip/core/rcu 17/23] rcu: improve the RCU CPU-stall ..., Paul E. McKenney, (Tue Apr 20, 2:44 pm)
[PATCH tip/core/rcu 18/23] Debugobjects transition check, Paul E. McKenney, (Tue Apr 20, 2:44 pm)
[PATCH tip/core/rcu 19/23] rcu head introduce rcu head ini ..., Paul E. McKenney, (Tue Apr 20, 2:44 pm)
[PATCH tip/core/rcu 21/23] rcu head remove init, Paul E. McKenney, (Tue Apr 20, 2:44 pm)
[PATCH tip/core/rcu 23/23] rcu: make SRCU usable in modules, Paul E. McKenney, (Tue Apr 20, 2:44 pm)