diff options
author | Matt Helsley <matthltc@us.ibm.com> | 2008-10-18 23:27:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-20 11:52:34 -0400 |
commit | 5a06915c6df9b89cda5ddb3f8cce5f9a6be534d2 (patch) | |
tree | 9c2cd3c928e1e29e34dcc90ea45deab12653c111 /kernel | |
parent | dc52ddc0e6f45b04780b26fc0813509f8e798c42 (diff) |
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 <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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/power/process.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c index 444cea80fde8..ca634019497a 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c | |||
@@ -135,6 +135,9 @@ static void thaw_tasks(bool nosig_only) | |||
135 | if (nosig_only && should_send_signal(p)) | 135 | if (nosig_only && should_send_signal(p)) |
136 | continue; | 136 | continue; |
137 | 137 | ||
138 | if (cgroup_frozen(p)) | ||
139 | continue; | ||
140 | |||
138 | thaw_process(p); | 141 | thaw_process(p); |
139 | } while_each_thread(g, p); | 142 | } while_each_thread(g, p); |
140 | read_unlock(&tasklist_lock); | 143 | read_unlock(&tasklist_lock); |