dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/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 /home/lenb/src/to-linus branch 'acpi-2.6.12' 2005-07-29 23:31:17 -04:00
asm-alpha [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-arm [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-arm26 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-cris [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-frv [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-generic [PATCH] x86: ptep_clear optimization 2005-09-05 00:05:48 -07:00
asm-h8300 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
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 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-m32r [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-m68k [PATCH] m68k: cleanup inline mem functions 2005-09-05 00:06:19 -07:00
asm-m68knommu [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-mips [PATCH] mips: remove timex.h for vr41xx 2005-09-05 00:06:08 -07:00
asm-parisc [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-powerpc [PATCH] Move all the very similar files to asm-powerpc 2005-08-30 13:32:06 +10:00
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 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-sh [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-sh64 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-sparc [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-sparc64 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-um [PATCH] uml: fixes performance regression in activate_mm and thus exec() 2005-09-05 00:06:21 -07:00
asm-v850 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-x86_64 [PATCH] i386: cleanup serialize msr 2005-09-05 00:06:11 -07:00
asm-xtensa [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
linux [PATCH] Uml support: add PTRACE_SYSEMU_SINGLESTEP option to i386 2005-09-05 00:06:20 -07:00
math-emu Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
media [PATCH] V4L: Miscellaneous fixes 2005-08-01 19:13:59 -07:00
mtd [MTD] NAND: Honour autoplacement schemes supplied by the caller 2005-05-23 13:20:45 +02:00
net /spare/repo/netdev-2.6 branch 'master' 2005-09-01 18:02:01 -04:00
pcmcia [PATCH] pcmcia: fix pcmcia-cs compilation 2005-07-12 16:00:59 -07:00
rdma [PATCH] IB: move include files to include/rdma 2005-08-26 20:37:38 -07:00
rxrpc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi [SCSI] fix target scanning oops with fc transport class 2005-08-08 17:14:55 -05:00
sound [ALSA] version 1.0.10rc1 2005-08-30 08:48:35 +02:00
video [PATCH] DEC PMAGB B framebuffer update 2005-09-05 00:06:03 -07:00