[PATCH 4/5] Container Freezer: Skip frozen cgroups during power management resume

Matt Helsley matthltc at us.ibm.com
Mon Aug 11 16:53:27 PDT 2008

When a system is resumed after a suspend, it will also unfreeze
frozen cgroups.

This patchs modifies the resume sequence to skip the tasks which
are part of a frozen control group.

Signed-off-by: Cedric Le Goater <clg at fr.ibm.com>
Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
Acked-by: Serge E. Hallyn <serue at us.ibm.com>
Tested-by: Matt Helsley <matthltc at us.ibm.com>
 kernel/power/process.c |    3 +++
 1 file changed, 3 insertions(+)

Index: linux-2.6.27-rc1-mm1/kernel/power/process.c
--- linux-2.6.27-rc1-mm1.orig/kernel/power/process.c
+++ linux-2.6.27-rc1-mm1/kernel/power/process.c
@@ -135,6 +135,9 @@ static void thaw_tasks(bool nosig_only)
 		if (nosig_only && should_send_signal(p))
+		if (cgroup_frozen(p))
+			continue;
 	} while_each_thread(g, p);


More information about the Containers mailing list