• Evgeniy Akimov's avatar
    restore: restore freezer cgroup state · 8b04551c
    Evgeniy Akimov authored
    Patch restores freezer cgroup state between finalize_restore stages.
    It should be done after first stage because we cannot unmap restorer blob
    from frozen process, and before second stage because we must freeze processes
    before they continue run.
    We also need to move fini_cgroup between these stages to provide freezer
    cgroup state restorer access to cgroup mount directories.
    Error handlers contains fini_cgroup, so we are sure that fini_cgroup call
    won't be missed.
    
    Patch restores state only for one freezer cgroup from --freeze-cgroup option,
    not all states from whole hierarchy, because CRIU supports checkpoint from
    freezer cgroup hierarchy only with THAWED state, except root cgroup from
    --freeze-cgroup option.
    Signed-off-by: 's avatarEvgeniy Akimov <geka666@gmail.com>
    Signed-off-by: 's avatarEugene Batalov <eabatalov89@gmail.com>
    Acked-by: 's avatarAndrew Vagin <avagin@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    8b04551c
cgroup.h 1.42 KB