mm: memcg: enable memcg OOM killer only for user faults
authorJohannes Weiner <[email protected]>
Thu, 12 Sep 2013 22:13:42 +0000 (15:13 -0700)
committerLinus Torvalds <[email protected]>
Thu, 12 Sep 2013 22:38:01 +0000 (15:38 -0700)
commit519e52473ebe9db5cdef44670d5a97f1fd53d721
tree635fce64ff3658250745b9c8dfebd47e981a5b16
parent3a13c4d761b4b979ba8767f42345fed3274991b0
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 <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: azurIt <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/memcontrol.h
include/linux/sched.h
mm/filemap.c
mm/memcontrol.c
mm/memory.c