• Tejun Heo's avatar
    cgroup: move migration destination verification out of cgroup_migrate_prepare_dst() · 6c694c88
    Tejun Heo authored
    cgroup_migrate_prepare_dst() verifies whether the destination cgroup
    is allowable; however, the test doesn't really belong there.  It's too
    deep and common in the stack and as a result the test itself is gated
    by another test.
    
    Separate the test out into cgroup_may_migrate_to() and update
    cgroup_attach_task() and cgroup_transfer_tasks() to perform the test
    directly.  This doesn't cause any behavior differences.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    6c694c88
cgroup.c 166 KB