X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=block%2Fcfq-iosched.c;h=5f127cfb2e924baf06f77ae95d1832e13048cee4;hb=06ee772043c7ad125f2c2e6a08dc563706f39e8d;hp=838834be115b3f341f3bc6e0eba54a5c3fcc424c;hpb=73c6c7fbb74d07a80fee41ce4ca3976547519e42;p=pandora-kernel.git diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 838834be115b..5f127cfb2e92 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -3694,8 +3694,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