* [patch 10/14] parisc: invoke oom-killer from page fault [not found] <20100422160613.723698029@suse.de> @ 2010-04-22 16:06 ` npiggin 2010-04-22 20:56 ` David Rientjes 0 siblings, 1 reply; 3+ messages in thread From: npiggin @ 2010-04-22 16:06 UTC (permalink / raw) To: linux-arch; +Cc: David Rientjes, Andrew Morton, linux-parisc, Kyle McMartin As explained in commit 1c0fe6e3bd, we want to call the architecture independent oom killer when getting an unexplained OOM from handle_mm_fault, rather than simply killing current. Cc: linux-parisc@vger.kernel.org Cc: Kyle McMartin <kyle@mcmartin.ca> Cc: linux-arch@vger.kernel.org Signed-off-by: Nick Piggin <npiggin@suse.de> --- Index: linux-2.6/arch/parisc/mm/fault.c =================================================================== --- linux-2.6.orig/arch/parisc/mm/fault.c +++ linux-2.6/arch/parisc/mm/fault.c @@ -264,8 +264,7 @@ no_context: out_of_memory: up_read(&mm->mmap_sem); - printk(KERN_CRIT "VM: killing process %s\n", current->comm); - if (user_mode(regs)) - do_group_exit(SIGKILL); - goto no_context; + if (!user_mode(regs)) + goto no_context; + pagefault_out_of_memory(); } ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch 10/14] parisc: invoke oom-killer from page fault 2010-04-22 16:06 ` [patch 10/14] parisc: invoke oom-killer from page fault npiggin @ 2010-04-22 20:56 ` David Rientjes 2010-04-26 15:00 ` Kyle McMartin 0 siblings, 1 reply; 3+ messages in thread From: David Rientjes @ 2010-04-22 20:56 UTC (permalink / raw) To: npiggin; +Cc: linux-arch, Andrew Morton, linux-parisc, Kyle McMartin On Fri, 23 Apr 2010, npiggin@suse.de wrote: > As explained in commit 1c0fe6e3bd, we want to call the architecture independent > oom killer when getting an unexplained OOM from handle_mm_fault, rather than > simply killing current. > > Cc: linux-parisc@vger.kernel.org > Cc: Kyle McMartin <kyle@mcmartin.ca> > Cc: linux-arch@vger.kernel.org > Signed-off-by: Nick Piggin <npiggin@suse.de> Acked-by: David Rientjes <rientjes@google.com> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch 10/14] parisc: invoke oom-killer from page fault 2010-04-22 20:56 ` David Rientjes @ 2010-04-26 15:00 ` Kyle McMartin 0 siblings, 0 replies; 3+ messages in thread From: Kyle McMartin @ 2010-04-26 15:00 UTC (permalink / raw) To: David Rientjes Cc: npiggin, linux-arch, Andrew Morton, linux-parisc, Kyle McMartin On Thu, Apr 22, 2010 at 01:56:26PM -0700, David Rientjes wrote: > On Fri, 23 Apr 2010, npiggin@suse.de wrote: > > > As explained in commit 1c0fe6e3bd, we want to call the architecture independent > > oom killer when getting an unexplained OOM from handle_mm_fault, rather than > > simply killing current. > > > > Cc: linux-parisc@vger.kernel.org > > Cc: Kyle McMartin <kyle@mcmartin.ca> > > Cc: linux-arch@vger.kernel.org > > Signed-off-by: Nick Piggin <npiggin@suse.de> > > Acked-by: David Rientjes <rientjes@google.com> Thanks, applied. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-26 15:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20100422160613.723698029@suse.de>
2010-04-22 16:06 ` [patch 10/14] parisc: invoke oom-killer from page fault npiggin
2010-04-22 20:56 ` David Rientjes
2010-04-26 15:00 ` Kyle McMartin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox