Nick Piggin 4a3ede107e [PATCH] oom: handle oom_disable exiting
Having the oomkilladj == OOM_DISABLE check before the releasing check means
that oomkilladj == OOM_DISABLE tasks exiting will not stop the OOM killer.

Moving the test down will give the desired behaviour.  Also: it will allow
them to "OOM-kill" themselves if they are exiting.  As per the previous patch,
this is required to prevent OOM killer deadlocks (and they don't actually get
killed, because they're already exiting -- they're simply allowed access to
memory reserves).

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-26 08:48:48 -07:00
..
2006-09-26 08:48:48 -07:00
2006-09-26 08:48:44 -07:00
2006-09-26 08:48:44 -07:00
2006-07-03 15:27:07 -07:00
2006-09-26 08:48:45 -07:00
2006-09-26 08:48:48 -07:00
2006-06-26 18:35:02 +02:00
2006-09-26 08:48:44 -07:00
2006-09-26 08:48:45 -07:00
2006-08-27 11:01:28 -07:00
2006-09-26 08:48:45 -07:00
2006-09-26 08:48:48 -07:00