X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=block%2Fcfq-iosched.c;h=ed897b5ef315dedfe01d0fe8817ef2259b770252;hb=b2e75eff5e859d0c294e7405958362b26a423c6e;hp=b1472bc2d49c6536a8ec4bc56ef72a90d89b1d45;hpb=f1ac2502e19c59e996242d406fcc60e4c563e8ce;p=safe%2Fjmp%2Flinux-2.6 diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index b1472bc..ed897b5 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -3741,8 +3741,10 @@ static void *cfq_init_queue(struct request_queue *q) * to make sure that cfq_put_cfqg() does not try to kfree root group */ atomic_set(&cfqg->ref, 1); + rcu_read_lock(); blkiocg_add_blkio_group(&blkio_root_cgroup, &cfqg->blkg, (void *)cfqd, 0); + rcu_read_unlock(); #endif /* * Not strictly needed (since RB_ROOT just clears the node and we