Skip to content

Commit

Permalink
block: remove all rcu head initializations
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
paulmck authored and Jens Axboe committed May 21, 2010
1 parent 6423104 commit f1ac250
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 0 additions & 1 deletion block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit f1ac250

Please sign in to comment.