]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - block/blk-cgroup.c
blkcg: move per-queue blkg list heads and counters to queue and blkg
[mirror_ubuntu-bionic-kernel.git] / block / blk-cgroup.c
index 91f9824be5cc1f67344224c0f463e20a5efd97e3..e940972ccd66d9e717c4466fa623d861f7cddb5d 100644 (file)
@@ -499,6 +499,8 @@ static struct blkio_group *blkg_alloc(struct blkio_cgroup *blkcg,
 
        spin_lock_init(&blkg->stats_lock);
        rcu_assign_pointer(blkg->q, q);
+       INIT_LIST_HEAD(&blkg->q_node[0]);
+       INIT_LIST_HEAD(&blkg->q_node[1]);
        blkg->blkcg = blkcg;
        blkg->plid = pol->plid;
        blkg->refcnt = 1;