]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: memcg: enable memcg OOM killer only for user faults
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 15 Aug 2013 23:39:36 +0000 (09:39 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 Aug 2013 07:27:09 +0000 (17:27 +1000)
commitcdcd1b6535590ac92a056a32b5a9cfe7a2742d83
tree577602228b276caa93260dc258fec2a0c4ec3bf9
parente159619a72691a4ae86ae1c67333d787364903f8
mm: memcg: enable memcg OOM killer only for user faults

System calls and kernel faults (uaccess, gup) can handle an out of memory
situation gracefully and just return -ENOMEM.

Enable the memcg OOM killer only for user faults, where it's really the
only option available.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: David Rientjes <rientjes@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: azurIt <azurit@pobox.sk>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memcontrol.h
include/linux/sched.h
mm/filemap.c
mm/memcontrol.c
mm/memory.c