aboutsummaryrefslogtreecommitdiff
path: root/mm/mmu_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mmu_context.c')
-rw-r--r--mm/mmu_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/mmu_context.c b/mm/mmu_context.c
index 8a8cd0265e52..adfce87a001a 100644
--- a/mm/mmu_context.c
+++ b/mm/mmu_context.c
@@ -23,6 +23,7 @@ void use_mm(struct mm_struct *mm)
struct task_struct *tsk = current;
task_lock(tsk);
+ preempt_disable_rt();
active_mm = tsk->active_mm;
if (active_mm != mm) {
atomic_inc(&mm->mm_count);
@@ -30,6 +31,7 @@ void use_mm(struct mm_struct *mm)
}
tsk->mm = mm;
switch_mm(active_mm, mm, tsk);
+ preempt_enable_rt();
task_unlock(tsk);
if (active_mm != mm)