diff options
author | Tejun Heo <tj@kernel.org> | 2015-07-09 22:39:49 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-07-09 22:41:09 +0200 |
commit | 7876f930d0e78addc6bbdbba0d6c196a0788d545 (patch) | |
tree | 3e38c6592038791cff22a9d3dd6b271c04333a58 /include | |
parent | blkcg: blkcg_css_alloc() should grab blkcg_pol_mutex while iterating blkcg_po... (diff) | |
download | linux-7876f930d0e78addc6bbdbba0d6c196a0788d545.tar.xz linux-7876f930d0e78addc6bbdbba0d6c196a0788d545.zip |
blkcg: implement all_blkcgs list
Add all_blkcgs list goes through blkcg->all_blkcgs_node and is
protected by blkcg_pol_mutex. This will be used to fix
blkcg_policy_data allocation bug.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Arianna Avanzini <avanzini.arianna@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blk-cgroup.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk-cgroup.h b/include/linux/blk-cgroup.h index 58cfab80dd70..cf3e7bc22ef3 100644 --- a/include/linux/blk-cgroup.h +++ b/include/linux/blk-cgroup.h @@ -47,6 +47,7 @@ struct blkcg { struct blkcg_policy_data *pd[BLKCG_MAX_POLS]; + struct list_head all_blkcgs_node; #ifdef CONFIG_CGROUP_WRITEBACK struct list_head cgwb_list; #endif |