]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - block/blk-cgroup.c
Add linux-next specific files for 20151105
[karo-tx-linux.git] / block / blk-cgroup.c
index ac8370cb25157d2ed1cd215f8b95edde0735e3de..5bcdfc10c23a6340367c4b9781496a49b5c81efe 100644 (file)
@@ -370,6 +370,9 @@ static void blkg_destroy_all(struct request_queue *q)
                blkg_destroy(blkg);
                spin_unlock(&blkcg->lock);
        }
+
+       q->root_blkg = NULL;
+       q->root_rl.blkg = NULL;
 }
 
 /*
@@ -896,6 +899,7 @@ static int blkcg_print_stat(struct seq_file *sf, void *v)
 struct cftype blkcg_files[] = {
        {
                .name = "stat",
+               .flags = CFTYPE_NOT_ON_ROOT,
                .seq_show = blkcg_print_stat,
        },
        { }     /* terminate */