[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] lxc: Fix suspend/resume with freezer cgroup



---
 src/util/cgroup.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/cgroup.c b/src/util/cgroup.c
index c8d1f33..71dedeb 100644
--- a/src/util/cgroup.c
+++ b/src/util/cgroup.c
@@ -1474,14 +1474,14 @@ int virCgroupGetCpuacctUsage(virCgroupPtr group, unsigned long long *usage)
 int virCgroupSetFreezerState(virCgroupPtr group, const char *state)
 {
     return virCgroupSetValueStr(group,
-                                VIR_CGROUP_CONTROLLER_CPU,
+                                VIR_CGROUP_CONTROLLER_FREEZER,
                                 "freezer.state", state);
 }
 
 int virCgroupGetFreezerState(virCgroupPtr group, char **state)
 {
     return virCgroupGetValueStr(group,
-                                VIR_CGROUP_CONTROLLER_CPU,
+                                VIR_CGROUP_CONTROLLER_FREEZER,
                                 "freezer.state", state);
 }
 
-- 
1.7.8.rc4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]