block: remove all rcu head initializations
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 19 May 2010 06:27:30 +0000 (08:27 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 21 May 2010 18:01:02 +0000 (20:01 +0200)
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>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c
block/genhd.c

index 0f3eb70f9ce192bd3554c05e2efc29d6c11eeb1c..b1472bc2d49c6536a8ec4bc56ef72a90d89b1d45 100644 (file)
@@ -3788,7 +3788,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;
 }
 
index 154b5f80b3aba67543c3295ffb5bb81eab5e90f3..59a2db6fecefa93aa91d114ccc3f6fd6055bd4ce 100644 (file)
@@ -988,7 +988,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++)