* [PATCH] mips: drop mmap_sem in pagefault oom path
@ 2009-07-03 16:33 Akinobu Mita
2009-07-06 10:15 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Akinobu Mita @ 2009-07-03 16:33 UTC (permalink / raw)
To: linux-mips; +Cc: Ralf Baechle
Fix the pagefault oom path which does not drop mm->mmap_sem.
This was introduced by commit c7c1e3846bac1e4b8a8941f6a194812e28b0a519
(This is not compile tested)
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
---
arch/mips/mm/fault.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c
index 6751ce9..f956ecb 100644
--- a/arch/mips/mm/fault.c
+++ b/arch/mips/mm/fault.c
@@ -171,6 +171,7 @@ out_of_memory:
* We ran out of memory, call the OOM killer, and return the userspace
* (which will retry the fault, or kill us if we got oom-killed).
*/
+ up_read(&mm->mmap_sem);
pagefault_out_of_memory();
return;
--
1.6.0.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mips: drop mmap_sem in pagefault oom path
2009-07-03 16:33 [PATCH] mips: drop mmap_sem in pagefault oom path Akinobu Mita
@ 2009-07-06 10:15 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2009-07-06 10:15 UTC (permalink / raw)
To: Akinobu Mita; +Cc: linux-mips
On Sat, Jul 04, 2009 at 01:33:09AM +0900, Akinobu Mita wrote:
Thanks, applied!
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-06 10:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-03 16:33 [PATCH] mips: drop mmap_sem in pagefault oom path Akinobu Mita
2009-07-06 10:15 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).