Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164489
b: refs/heads/master
c: f68e148
h: refs/heads/master
i:
  164487: e477bdb
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Linus Torvalds committed Sep 22, 2009
1 parent 0155577 commit e51acb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3d2d827f5ca5e32816194119d5c980c7e04474a6
refs/heads/master: f68e14805085972b4e0b0ab684af37f713b9c262
9 changes: 6 additions & 3 deletions trunk/mm/mmu_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ void use_mm(struct mm_struct *mm)

task_lock(tsk);
active_mm = tsk->active_mm;
atomic_inc(&mm->mm_count);
if (active_mm != mm) {
atomic_inc(&mm->mm_count);
tsk->active_mm = mm;
}
tsk->mm = mm;
tsk->active_mm = mm;
switch_mm(active_mm, mm, tsk);
task_unlock(tsk);

mmdrop(active_mm);
if (active_mm != mm)
mmdrop(active_mm);
}

/*
Expand Down

0 comments on commit e51acb0

Please sign in to comment.