summaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
authorTejun Heo2015-10-15 22:41:52 +0200
committerTejun Heo2015-10-15 22:41:52 +0200
commitf6d7d049c17a29fbc4c2723899a242d6889554aa (patch)
treeb1f6b101f1f4722e39921eebf27a1de1bf98d487 /include/linux/cgroup.h
parentcgroup: keep css_set and task lists in chronological order (diff)
downloadkernel-qcow2-linux-f6d7d049c17a29fbc4c2723899a242d6889554aa.tar.gz
kernel-qcow2-linux-f6d7d049c17a29fbc4c2723899a242d6889554aa.tar.xz
kernel-qcow2-linux-f6d7d049c17a29fbc4c2723899a242d6889554aa.zip
cgroup: factor out css_set_move_task()
A task is associated and disassociated with its css_set in three places - during migration, after a new task is created and when a task exits. The first is handled by cgroup_task_migrate() and the latter two are open-coded. These are similar operations and spreading them over multiple places makes it harder to follow and update. This patch collects all task css_set [dis]association operations into css_set_move_task(). While css_set_move_task() may check whether populated state needs to be updated when not strictly necessary, the behavior is essentially equivalent before and after this patch. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/cgroup.h')
0 files changed, 0 insertions, 0 deletions