Commit e763b793f7e5c09a859fc420eb0de385d80cf636
Committed by
Linus Torvalds
1 parent
ff5c6ff542
Exists in
master
and in
7 other branches
[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>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
include/asm-um/mmu_context.h
| ... | ... | @@ -29,7 +29,8 @@ |
| 29 | 29 | * possible. |
| 30 | 30 | */ |
| 31 | 31 | if (old != new && (current->flags & PF_BORROWED_MM)) |
| 32 | - force_flush_all(); | |
| 32 | + CHOOSE_MODE(force_flush_all(), | |
| 33 | + switch_mm_skas(&new->context.skas.id)); | |
| 33 | 34 | } |
| 34 | 35 | |
| 35 | 36 | static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, |