aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTomasz Buchert <[email protected]>2010-10-27 15:33:33 -0700
committerLinus Torvalds <[email protected]>2010-10-27 18:03:08 -0700
commit0bdba580ab052a21e3eda2764ed22d9ee962392b (patch)
tree9d8fb958c8612a9c72b8662d9b51c12c76ccd0bb /tools/perf/scripts/python
parentd5de4ddb1bc430289bede76c0d87cabee93f749a (diff)
cgroup_freezer: fix can_attach() to prohibit moving from/to freezing/frozen cgroups
It is possible to move a task from its cgroup even if this group is 'FREEZING'. This results in a nasty bug - the moved task will become frozen OUTSIDE its original cgroup and will remain in a permanent 'D' state. This patch allows to migrate the task only between THAWED cgroups. This behavior was observed and easily reproduced on a single core laptop. Notice that reproducibility depends highly on the machine used. Program and instructions how to reproduce the bug can be fetched from: http://pentium.hopto.org/~thinred/repos/linux-misc/freezer_bug.c Signed-off-by: Tomasz Buchert <[email protected]> Cc: Matt Helsley <[email protected]> Cc: Paul Menage <[email protected]> Cc: Li Zefan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions