Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356162
b: refs/heads/master
c: 5e4bf1a
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Nov 22, 2012
1 parent 3006ff4 commit 6c5a2db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bbee3aec3472fc2ca10b6b1020aec84567ea25ce
refs/heads/master: 5e4bf1a55da976a5ed60901bb8801f1024ef9774
7 changes: 6 additions & 1 deletion trunk/arch/x86/mm/pgtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,12 @@ int pmdp_set_access_flags(struct vm_area_struct *vma,
if (changed && dirty) {
*pmdp = entry;
pmd_update_defer(vma->vm_mm, address, pmdp);
flush_tlb_range(vma, address, address + HPAGE_PMD_SIZE);
/*
* We had a write-protection fault here and changed the pmd
* to to more permissive. No need to flush the TLB for that,
* #PF is architecturally guaranteed to do that and in the
* worst-case we'll generate a spurious fault.
*/
}

return changed;
Expand Down

0 comments on commit 6c5a2db

Please sign in to comment.