diff options
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index b1472bc2d49c..ed897b5ef315 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -3741,8 +3741,10 @@ static void *cfq_init_queue(struct request_queue *q) | |||
3741 | * to make sure that cfq_put_cfqg() does not try to kfree root group | 3741 | * to make sure that cfq_put_cfqg() does not try to kfree root group |
3742 | */ | 3742 | */ |
3743 | atomic_set(&cfqg->ref, 1); | 3743 | atomic_set(&cfqg->ref, 1); |
3744 | rcu_read_lock(); | ||
3744 | blkiocg_add_blkio_group(&blkio_root_cgroup, &cfqg->blkg, (void *)cfqd, | 3745 | blkiocg_add_blkio_group(&blkio_root_cgroup, &cfqg->blkg, (void *)cfqd, |
3745 | 0); | 3746 | 0); |
3747 | rcu_read_unlock(); | ||
3746 | #endif | 3748 | #endif |
3747 | /* | 3749 | /* |
3748 | * Not strictly needed (since RB_ROOT just clears the node and we | 3750 | * Not strictly needed (since RB_ROOT just clears the node and we |