diff options
author | Ben Lahaise <bcrl@linux.intel.com> | 2005-11-07 00:58:52 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 07:53:31 -0800 |
commit | e763b793f7e5c09a859fc420eb0de385d80cf636 (patch) | |
tree | dd6a0fe2abe51339c7a3296c34d19efb3e928ff4 /include/asm-um/mmu_context.h | |
parent | ff5c6ff54215fe284e515032878111de5d8a5ce1 (diff) | |
download | kernel_samsung_smdk4412-e763b793f7e5c09a859fc420eb0de385d80cf636.zip kernel_samsung_smdk4412-e763b793f7e5c09a859fc420eb0de385d80cf636.tar.gz kernel_samsung_smdk4412-e763b793f7e5c09a859fc420eb0de385d80cf636.tar.bz2 |
[PATCH] uml: switch_mm fix
Not quite, something along the lines of the patch below works correctly (and
makes aio performance not suffer from multiple second delays), as skas0 mode
correctly switches mm contexts, unlike TT (which should probably get nuked
from the kernel now that skas0 seems to be working).
Signed-off-by: Benjamin LaHaise <bcrl@linux.intel.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-um/mmu_context.h')
-rw-r--r-- | include/asm-um/mmu_context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-um/mmu_context.h b/include/asm-um/mmu_context.h index 2edb4f1..9a0e48e 100644 --- a/include/asm-um/mmu_context.h +++ b/include/asm-um/mmu_context.h @@ -29,7 +29,8 @@ static inline void activate_mm(struct mm_struct *old, struct mm_struct *new) * possible. */ if (old != new && (current->flags & PF_BORROWED_MM)) - force_flush_all(); + CHOOSE_MODE(force_flush_all(), + switch_mm_skas(&new->context.skas.id)); } static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, |