linux/arch/microblaze
Johannes Weiner e2ec2c2b96 arch: mm: pass userspace fault flag to generic fault handler
commit 759496ba64 upstream.

Unlike global OOM handling, memory cgroup code will invoke the OOM killer
in any OOM situation because it has no way of telling faults occuring in
kernel context - which could be handled more gracefully - from
user-triggered faults.

Pass a flag that identifies faults originating in user space from the
architecture-specific fault handlers to generic code so that memcg OOM
handling can be improved.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-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>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-11-21 09:22:56 -08:00
..
boot microblaze: Add .gitignore entries for auto-generated files 2013-02-12 11:24:44 +01:00
configs microblaze: Do not select OPT_LIB_ASM by default 2013-05-09 09:04:31 +02:00
include microblaze: Use static inline functions in cacheflush.h 2013-06-03 11:33:23 +02:00
kernel microblaze: Initialize temp variable to remove compilation warning 2013-05-14 09:09:08 +02:00
lib microblaze: Do not use module.h in files which are not modules 2013-02-12 11:24:45 +01:00
mm arch: mm: pass userspace fault flag to generic fault handler 2014-11-21 09:22:56 -08:00
oprofile microblaze: Core oprofile configs and hooks 2009-12-14 08:45:07 +01:00
pci microblaze: pci: Remove duplicated include from pci-common.c 2013-05-09 09:01:21 +02:00
platform arch/microblaze/platform: remove depends on CONFIG_EXPERIMENTAL 2013-01-17 12:11:26 -08:00
Kconfig microblaze: fix clone syscall 2013-08-20 08:43:02 -07:00
Kconfig.debug microblaze: remove obsolete DEBUG_BOOTMEM 2011-01-10 09:29:51 +01:00
Makefile microblaze: Makefile clean 2013-02-12 11:24:44 +01:00