Skip to content

Commit

Permalink
container freezer: skip frozen cgroups during power management resume
Browse files Browse the repository at this point in the history
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@fr.ibm.com>
Signed-off-by: Matt Helsley <matthltc@us.ibm.com>
Acked-by: Serge E. Hallyn <serue@us.ibm.com>
Tested-by: Matt Helsley <matthltc@us.ibm.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Matt Helsley authored and Linus Torvalds committed Oct 20, 2008
1 parent dc52ddc commit 5a06915
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/power/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5a06915

Please sign in to comment.