linux/include
Paolo 'Blaisorblade' Giarrusso 1e40cd383c [PATCH] uml: fixes performance regression in activate_mm and thus exec()
Normally, activate_mm() is called from exec(), and thus it used to be a
no-op because we use a completely new "MM context" on the host (for
instance, a new process), and so we didn't need to flush any "TLB entries"
(which for us are the set of memory mappings for the host process from the
virtual "RAM" file).

Kernel threads, instead, are usually handled in a different way.  So, when
for AIO we call use_mm(), things used to break and so Benjamin implemented
activate_mm().  However, that is only needed for AIO, and could slow down
exec() inside UML, so be smart: detect being called for AIO (via
PF_BORROWED_MM) and do the full flush only in that situation.

Comment also the caller so that people won't go breaking UML without
noticing.  I also rely on the caller's locks for testing current->flags.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
CC: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-05 00:06:21 -07:00
..
acpi
asm-alpha
asm-arm
asm-arm26
asm-cris
asm-frv
asm-generic
asm-h8300
asm-i386 [PATCH] UML Support - Ptrace: adds the host SYSEMU support, for UML and general usage 2005-09-05 00:06:20 -07:00
asm-ia64
asm-m32r
asm-m68k [PATCH] m68k: cleanup inline mem functions 2005-09-05 00:06:19 -07:00
asm-m68knommu
asm-mips [PATCH] mips: remove timex.h for vr41xx 2005-09-05 00:06:08 -07:00
asm-parisc
asm-powerpc
asm-ppc [PATCH] ppc32: mv64x60 updates & enhancements 2005-09-05 00:06:00 -07:00
asm-ppc64 [PATCH] ppc64: Add VMX save flag to VPA 2005-09-05 00:06:01 -07:00
asm-s390
asm-sh
asm-sh64
asm-sparc
asm-sparc64
asm-um [PATCH] uml: fixes performance regression in activate_mm and thus exec() 2005-09-05 00:06:21 -07:00
asm-v850
asm-x86_64 [PATCH] i386: cleanup serialize msr 2005-09-05 00:06:11 -07:00
asm-xtensa
linux [PATCH] Uml support: add PTRACE_SYSEMU_SINGLESTEP option to i386 2005-09-05 00:06:20 -07:00
math-emu
media
mtd
net
pcmcia
rdma
rxrpc
scsi
sound
video [PATCH] DEC PMAGB B framebuffer update 2005-09-05 00:06:03 -07:00