1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 14:55:37 +03:00

take jointly mounted controllers into account when migrate cgroups, otherwise "CGroupMask done" seems to be redundant.

This commit is contained in:
jiangchuangang 2022-08-22 11:13:51 +08:00 committed by Yu Watanabe
parent 20e72c2bd4
commit e3a4724db2

View File

@ -768,6 +768,8 @@ int cg_migrate_v1_controllers(CGroupMask supported, CGroupMask mask, const char
/* Remember first error and try continuing */
q = cg_migrate_recursive_fallback(SYSTEMD_CGROUP_CONTROLLER, from, cgroup_controller_to_string(c), to, 0);
r = (r < 0) ? r : q;
done |= CGROUP_MASK_EXTEND_JOINED(bit);
}
return r;