diff options
author | Johannes Weiner <[email protected]> | 2011-08-25 15:59:16 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-08-25 16:25:34 -0700 |
commit | 23751be0094012eb6b4756fa80ca54b3eb83069f (patch) | |
tree | 30c33d9165bb33d64bd42d6e9bc1e4cbed1c0780 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 86383b55791bd97e88ef493e33ef521ee244f3d9 (diff) |
memcg: fix hierarchical oom locking
Commit 79dfdaccd1d5 ("memcg: make oom_lock 0 and 1 based rather than
counter") tried to oom lock the hierarchy and roll back upon
encountering an already locked memcg.
The code is confused when it comes to detecting a locked memcg, though,
so it would fail and rollback after locking one memcg and encountering
an unlocked second one.
The result is that oom-locking hierarchies fails unconditionally and
that every oom killer invocation simply goes to sleep on the oom
waitqueue forever. The tasks practically hang forever without anyone
intervening, possibly holding locks that trip up unrelated tasks, too.
Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions