Re: [patch 3/7] arch: mm: pass userspace fault flag to generic fault handler

2013-08-05 Thread Johannes Weiner
On Mon, Aug 05, 2013 at 03:06:18PM -0700, Andrew Morton wrote: > On Sat, 3 Aug 2013 12:59:56 -0400 Johannes Weiner wrote: > > > 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 contex

Re: [patch 3/7] arch: mm: pass userspace fault flag to generic fault handler

2013-08-05 Thread Andrew Morton
On Sat, 3 Aug 2013 12:59:56 -0400 Johannes Weiner wrote: > 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

[patch 3/7] arch: mm: pass userspace fault flag to generic fault handler

2013-08-03 Thread Johannes Weiner
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