projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68db30c
)
mn10300: invoke oom-killer from page fault
author
Nick Piggin
<
[email protected]
>
Fri, 4 Jun 2010 21:14:51 +0000
(14:14 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 4 Jun 2010 22:21:44 +0000
(15:21 -0700)
As explained in commit
1c0fe6e3bd
("mm: invoke oom-killer from page
fault") , we want to call the architecture independent oom killer when
getting an unexplained OOM from handle_mm_fault, rather than simply
killing current.
Signed-off-by: Nick Piggin <
[email protected]
>
Acked-by: David Rientjes <
[email protected]
>
Acked-by: David Howells <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/mn10300/mm/fault.c
patch
|
blob
|
history
diff --git
a/arch/mn10300/mm/fault.c
b/arch/mn10300/mm/fault.c
index 53bb17d0f0687764ab1d8a4e05d6cdfc81c03e25..81f153fa51b4a6ecb07111f1d20383fbf0b6eaf2 100644
(file)
--- a/
arch/mn10300/mm/fault.c
+++ b/
arch/mn10300/mm/fault.c
@@
-338,11
+338,10
@@
no_context:
*/
out_of_memory:
up_read(&mm->mmap_sem);
- monitor_signal(regs);
- printk(KERN_ALERT "VM: killing process %s\n", tsk->comm);
- if ((fault_code & MMUFCR_xFC_ACCESS) == MMUFCR_xFC_ACCESS_USR)
- do_exit(SIGKILL);
- goto no_context;
+ if ((fault_code & MMUFCR_xFC_ACCESS) != MMUFCR_xFC_ACCESS_USR)
+ goto no_context;
+ pagefault_out_of_memory();
+ return;
do_sigbus:
up_read(&mm->mmap_sem);