From: Matt Helsley Date: Sun, 19 Oct 2008 03:27:22 +0000 (-0700) Subject: container freezer: skip frozen cgroups during power management resume X-Git-Tag: v2.6.28-rc1~200 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5a06915c6df9b89cda5ddb3f8cce5f9a6be534d2;p=linux-2.6-omap-h63xx.git container freezer: skip frozen cgroups during power management resume 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 Signed-off-by: Matt Helsley Acked-by: Serge E. Hallyn Tested-by: Matt Helsley Acked-by: Rafael J. Wysocki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/power/process.c b/kernel/power/process.c index 444cea80fde..ca634019497 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c @@ -135,6 +135,9 @@ static void thaw_tasks(bool nosig_only) if (nosig_only && should_send_signal(p)) continue; + if (cgroup_frozen(p)) + continue; + thaw_process(p); } while_each_thread(g, p); read_unlock(&tasklist_lock);