Skip to content
  • Tejun Heo's avatar
    cgroup: separate out taskset operations from cgroup_migrate() · adaae5dc
    Tejun Heo authored
    
    
    Currently, cgroup_migreate() implements large part of the migration
    logic inline including building the target taskset and actually
    migrating them.  This patch separates out the following taskset
    operations.
    
     CGROUP_TASKSET_INIT()		: taskset initializer
     cgroup_taskset_add()		: add a task to a taskset
     cgroup_taskset_migrate()	: migrate a taskset to the destination cgroup
    
    This will be used to implement atomic multi-process migration in
    cgroup_update_dfl_csses().  This is pure reorganization which doesn't
    introduce any functional changes.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarZefan Li <lizefan@huawei.com>
    adaae5dc