lkml.org 
[lkml]   [2010]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH tip/core/rcu 22/48] rcu head remove init
    Date
    From: Mathieu Desnoyers <mathieu.desnoyers@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: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    CC: David S. Miller <davem@davemloft.net>
    CC: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
    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 | 6 ------
    1 files changed, 0 insertions(+), 6 deletions(-)

    diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h
    index b653b4a..3a1a70d 100644
    --- a/include/linux/rcupdate.h
    +++ b/include/linux/rcupdate.h
    @@ -73,12 +73,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)
    -
    static inline void init_rcu_head_on_stack(struct rcu_head *head)
    {
    }
    --
    1.7.0


    \
     
     \ /
      Last update: 2010-05-04 22:51    [W:3.891 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site