linux/kernel/cgroup
Tejun Heo e595cd7069 cgroup: track migration context in cgroup_mgctx
cgroup migration is performed in four steps - css_set preloading,
addition of target tasks, actual migration, and clean up.  A list
named preloaded_csets is used to track the preloading.  This is a bit
too restricted and the code is already depending on the subtlety that
all source css_sets appear before destination ones.

Let's create struct cgroup_mgctx which keeps track of everything
during migration.  Currently, it has separate preload lists for source
and destination csets and also embeds cgroup_taskset which is used
during the actual migration.  This moves struct cgroup_taskset
definition to cgroup-internal.h.

This patch doesn't cause any functional changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Zefan Li <lizefan@huawei.com>
2017-01-15 19:03:41 -05:00
..
cgroup-internal.h cgroup: track migration context in cgroup_mgctx 2017-01-15 19:03:41 -05:00
cgroup-v1.c cgroup: track migration context in cgroup_mgctx 2017-01-15 19:03:41 -05:00
cgroup.c cgroup: track migration context in cgroup_mgctx 2017-01-15 19:03:41 -05:00
cpuset.c
freezer.c
Makefile cgroup: move namespace code to kernel/cgroup/namespace.c 2016-12-27 14:49:09 -05:00
namespace.c cgroup: move namespace code to kernel/cgroup/namespace.c 2016-12-27 14:49:09 -05:00
pids.c