diff options
author | Johannes Weiner <jweiner@redhat.com> | 2011-08-25 15:59:16 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-25 16:25:34 -0700 |
commit | 23751be0094012eb6b4756fa80ca54b3eb83069f (patch) | |
tree | 30c33d9165bb33d64bd42d6e9bc1e4cbed1c0780 /drivers | |
parent | 86383b55791bd97e88ef493e33ef521ee244f3d9 (diff) | |
download | talos-obmc-linux-23751be0094012eb6b4756fa80ca54b3eb83069f.tar.gz talos-obmc-linux-23751be0094012eb6b4756fa80ca54b3eb83069f.zip |
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 <jweiner@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions