lkml.org 
[lkml]   [2010]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH RFC tip/core/rcu 05/11] block: remove all rcu head initializations
    Date
    Remove all rcu head inits. We don't care about the RCU head state before passing
    it to call_rcu() anyway. Only leave the "on_stack" variants so debugobjects can
    keep track of objects on stack.

    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: Jens Axboe <jens.axboe@oracle.com>
    ---
    block/cfq-iosched.c | 1 -
    block/genhd.c | 1 -
    2 files changed, 0 insertions(+), 2 deletions(-)

    diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
    index 5f127cf..702d006 100644
    --- a/block/cfq-iosched.c
    +++ b/block/cfq-iosched.c
    @@ -3743,7 +3743,6 @@ static void *cfq_init_queue(struct request_queue *q)
    * second, in order to have larger depth for async operations.
    */
    cfqd->last_delayed_sync = jiffies - HZ;
    - INIT_RCU_HEAD(&cfqd->rcu);
    return cfqd;
    }

    diff --git a/block/genhd.c b/block/genhd.c
    index d13ba76..27e85a2 100644
    --- a/block/genhd.c
    +++ b/block/genhd.c
    @@ -987,7 +987,6 @@ int disk_expand_part_tbl(struct gendisk *disk, int partno)
    if (!new_ptbl)
    return -ENOMEM;

    - INIT_RCU_HEAD(&new_ptbl->rcu_head);
    new_ptbl->len = target;

    for (i = 0; i < len; i++)
    --
    1.7.0.6


    \
     
     \ /
      Last update: 2010-05-12 10:15    [W:4.117 / U:0.532 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site