Prev: [PATCH tip/core/rcu 02/10] Update documentation to note the passage of INIT_RCU_HEAD()
Next: [PATCH tip/core/rcu 05/10] rcu: restrict TREE_RCU to SMP builds with !PREEMPT
From: Paul E. McKenney on 9 Aug 2010 18:20 From: Mathieu Desnoyers <mathieu.desnoyers(a)efficios.com> RCU heads really don't need to be initialized. Their state before call_rcu() really does not matter. We need to keep init/destroy_rcu_head_on_stack() though, since we want debugobjects to be able to keep track of these objects. Signed-off-by: Alexey Dobriyan <adobriyan(a)gmail.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers(a)efficios.com> CC: David S. Miller <davem(a)davemloft.net> CC: "Paul E. McKenney" <paulmck(a)linux.vnet.ibm.com> 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> Reviewed-by: Josh Triplett <josh(a)joshtriplett.org> --- include/linux/rcupdate.h | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 3e1b662..27b44b3 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h @@ -75,12 +75,6 @@ extern void rcu_init(void); #error "Unknown RCU implementation specified to kernel configuration" #endif -#define RCU_HEAD_INIT { .next = NULL, .func = NULL } -#define RCU_HEAD(head) struct rcu_head head = RCU_HEAD_INIT -#define INIT_RCU_HEAD(ptr) do { \ - (ptr)->next = NULL; (ptr)->func = NULL; \ -} while (0) - /* * init_rcu_head_on_stack()/destroy_rcu_head_on_stack() are needed for dynamic * initialization and destruction of rcu_head on the stack. rcu_head structures -- 1.7.0.6 -- 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/ |