Skip to content

Commit e763b79

Browse files
Ben LahaiseLinus Torvalds
Ben Lahaise
authored and
Linus Torvalds
committed
[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 <[email protected]> Signed-off-by: Jeff Dike <[email protected]> Cc: Paolo Giarrusso <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent ff5c6ff commit e763b79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/asm-um/mmu_context.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ static inline void activate_mm(struct mm_struct *old, struct mm_struct *new)
2929
* possible.
3030
*/
3131
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));
3334
}
3435

3536
static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,

0 commit comments

Comments
 (0)