Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131466
b: refs/heads/master
c: 7ad9de6
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Feb 12, 2009
1 parent a1cc456 commit ebb07ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 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: 34b0900d323122113683685b200aae9f9b75e63b
refs/heads/master: 7ad9de6ac83bd825996d2de98c92e0f425c31050
15 changes: 7 additions & 8 deletions trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,14 +575,6 @@ static int __change_page_attr(struct cpa_data *cpa, int primary)
address = cpa->vaddr[cpa->curpage];
else
address = *cpa->vaddr;

/*
* If we're called with lazy mmu updates enabled, the
* in-memory pte state may be stale. Flush pending updates to
* bring them up to date.
*/
arch_flush_lazy_mmu_mode();

repeat:
kpte = lookup_address(address, &level);
if (!kpte)
Expand Down Expand Up @@ -819,6 +811,13 @@ static int change_page_attr_set_clr(unsigned long *addr, int numpages,

vm_unmap_aliases();

/*
* If we're called with lazy mmu updates enabled, the
* in-memory pte state may be stale. Flush pending updates to
* bring them up to date.
*/
arch_flush_lazy_mmu_mode();

cpa.vaddr = addr;
cpa.numpages = numpages;
cpa.mask_set = mask_set;
Expand Down

0 comments on commit ebb07ea

Please sign in to comment.