diff options
author | Zachary Amsden <zach@vmware.com> | 2006-10-01 02:29:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:33 -0400 |
commit | 3dc907951446b9317b1887223caa4e083390de9f (patch) | |
tree | addff9ee95e0caea5e895a1a674e49f38254fddd /mm/memory.c | |
parent | bd4c8ce41a2e2f0c5bf54343ab54e8e09faec021 (diff) |
[PATCH] paravirt: remove read hazard from cow
We don't want to read PTEs directly like this after they have been modified,
as a lazy MMU implementation of direct page tables may not have written the
updated PTE back to memory yet.
Signed-off-by: Zachary Amsden <zach@vmware.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 160f5b503ead..7707187484cc 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -467,7 +467,7 @@ copy_one_pte(struct mm_struct *dst_mm, struct mm_struct *src_mm, | |||
467 | */ | 467 | */ |
468 | if (is_cow_mapping(vm_flags)) { | 468 | if (is_cow_mapping(vm_flags)) { |
469 | ptep_set_wrprotect(src_mm, addr, src_pte); | 469 | ptep_set_wrprotect(src_mm, addr, src_pte); |
470 | pte = *src_pte; | 470 | pte = pte_wrprotect(pte); |
471 | } | 471 | } |
472 | 472 | ||
473 | /* | 473 | /* |