Fix COW D-cache aliasing on fork
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | Fix COW D-cache aliasing on forkinclude/ | +4 | 0 replies | |
| 2/4 | Pass vma argument to copy_user_highpage().include/ mm/ mm/ | +10 | 0 replies | |
| 3/4 | MIPS: Fix COW D-cache aliasing on forkarch/ include/ | +31 | 0 replies | |
| 4/4 | Optimize D-cache alias handling on forkDocumentation/ include/ include/ +24 more | +54 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] Fix COW D-cache aliasing on fork
This is a respin of the patch series I posted a while ago updated for today's kernel:
o patch 1/4 allows an architecture to override the generic copy_user_highpage with an architecture specific implementation. For details about the aliasing issue please see the log message of that patch.
o patch 2/4 passes a vma argument to copy_user_highpage. This allows an architecture to optimize its cache handling by looking at the vma's VM_EXEC flag. On architecture that do not make use of this gcc will be able to optimize the argument passing away, so no overhead.
o patch 3/4 uses the facilities of the first two patches to solve the alias issue for MIPS
o patch 4/4 is not a cache alias fix but allows optimizing away the cache flush operation in dup_mm(). On a MIPS 34K this accelerates fork by 12.5%.
Since this patch is logically separate from 1-3 it can be applied independantly.
Ralf