Prev: [PATCH tip/core/rcu 12/23] rcu: disable CPU stall warnings upon panic
Next: [PATCH tip/core/rcu 04/23] rcu: ignore offline CPUs in last non-dyntick-idle CPU check
From: Paul E. McKenney on 20 Apr 2010 17:50 From: Mathieu Desnoyers <mathieu.desnoyers(a)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(a)efficios.com> CC: "Paul E. McKenney" <paulmck(a)linux.vnet.ibm.com> CC: David S. Miller <davem(a)davemloft.net> CC: akpm(a)linux-foundation.org CC: mingo(a)elte.hu CC: laijs(a)cn.fujitsu.com CC: dipankar(a)in.ibm.com CC: josh(a)joshtriplett.org CC: dvhltc(a)us.ibm.com CC: niv(a)us.ibm.com CC: tglx(a)linutronix.de CC: peterz(a)infradead.org CC: rostedt(a)goodmis.org CC: Valdis.Kletnieks(a)vt.edu CC: dhowells(a)redhat.com CC: eric.dumazet(a)gmail.com CC: Alexey Dobriyan <adobriyan(a)gmail.com> Signed-off-by: Paul E. McKenney <paulmck(a)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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |