Commit af5b145c authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

cgroups: clarify comment about when dumping criu cgset

Empty cgroups will not be preserved in the criu cgset, since we don't ever
dump the criu cgset. This is perhaps a corner case that we may want to
address, but is probably (?) really only relevant for test cases.
Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent e3b686f8
...@@ -854,7 +854,10 @@ int dump_cgroups(void) ...@@ -854,7 +854,10 @@ int dump_cgroups(void)
/* /*
* Check whether root task lives in its own set as compared * Check whether root task lives in its own set as compared
* to criu. If yes, we should not dump anything. * to criu. If yes, we should not dump anything. Note that
* list_is_singular() is slightly wrong here: if the criu cgset has
* empty cgroups, those will not be restored on the target host, since
* we're not dumping anything here.
*/ */
if (root_cgset == criu_cgset && list_is_singular(&cg_sets)) { if (root_cgset == criu_cgset && list_is_singular(&cg_sets)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment