summaryrefslogtreecommitdiffstats
path: root/kernel/sched/debug.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2014-02-12 15:29:49 +0100
committerTejun Heo <tj@kernel.org>2014-02-12 15:29:49 +0100
commit21a2d3430ba8c188af405a5c2eb9c06bdcb6add6 (patch)
tree7fc1d9be2e3297a53c64c7599bf2760cacbf6187 /kernel/sched/debug.c
parentcgroup: remove cftype_set (diff)
downloadlinux-21a2d3430ba8c188af405a5c2eb9c06bdcb6add6.tar.xz
linux-21a2d3430ba8c188af405a5c2eb9c06bdcb6add6.zip
cgroup: simplify dynamic cftype addition and removal
Dynamic cftype addition and removal using cgroup_add/rm_cftypes() respectively has been quite hairy due to vfs i_mutex. As i_mutex nests outside cgroup_mutex, cgroup_mutex has to be released and regrabbed on each iteration through the hierarchy complicating the process. Now that i_mutex is no longer in play, it can be simplified. * Just holding cgroup_tree_mutex is enough. No need to meddle with cgroup_mutex. * No reason to play the unlock - relock - check serial_nr dancing. Everything can be atomically while holding cgroup_tree_mutex. * cgroup_cfts_prepare() is replaced with direct locking of cgroup_tree_mutex. * cgroup_cfts_commit() no longer fiddles with locking. It just applies the cftypes change to the existing cgroups in the hierarchy. Renamed to cgroup_cfts_apply(). Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'kernel/sched/debug.c')
0 files changed, 0 insertions, 0 deletions