projects
/
kernel
/
swap-modules.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bee2faf
)
Calls to functions which can sleep was removed from do_page_fault_ret_precode
author
Alexey Gerenkov
<a.gerenkov@samsung.com>
Fri, 14 Jan 2011 10:14:24 +0000
(13:14 +0300)
committer
Alexey Gerenkov
<a.gerenkov@samsung.com>
Fri, 14 Jan 2011 10:14:24 +0000
(13:14 +0300)
driver/us_proc_inst.c
patch
|
blob
|
history
diff --git
a/driver/us_proc_inst.c
b/driver/us_proc_inst.c
index
7e11537
..
cde8e3c
100644
(file)
--- a/
driver/us_proc_inst.c
+++ b/
driver/us_proc_inst.c
@@
-775,10
+775,10
@@
void do_page_fault_ret_pre_code (void)
if (task_inst_info->tgid == 0)
{
- mm =
get_task_mm (current);//
current->active_mm;
+ mm = current->active_mm;
if (mm)
{
-
down_read (&mm->mmap_sem);
+
//
down_read (&mm->mmap_sem);
vma = mm->mmap;
while (vma)
{
@@
-791,8
+791,8
@@
void do_page_fault_ret_pre_code (void)
}
vma = vma->vm_next;
}
-
up_read (&mm->mmap_sem);
-
mmput (mm);
+
//
up_read (&mm->mmap_sem);
+
//
mmput (mm);
} else {
// DPRINTF ("proc %s/%d has no mm", current->comm, current->pid);
}