Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112525
b: refs/heads/master
c: 5843d9a
h: refs/heads/master
i:
  112523: ca5d5fe
v: v3
  • Loading branch information
Nick Piggin authored and Ingo Molnar committed Aug 15, 2008
1 parent b0e1f0d commit b5d50c7
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 466ae837424dcc538b1af2a0eaf53be32edcdbe7
refs/heads/master: 5843d9a4d0ba89719916c8f07fc9c57b7126be6d
3 changes: 3 additions & 0 deletions trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,9 @@ static int do_change_page_attr_set_clr(unsigned long addr, int numpages,
WARN_ON_ONCE(1);
}

/* Must avoid aliasing mappings in the highmem code */
kmap_flush_unused();

cpa.vaddr = addr;
cpa.numpages = numpages;
cpa.mask_set = mask_set;
Expand Down
5 changes: 4 additions & 1 deletion trunk/mm/highmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ static DECLARE_WAIT_QUEUE_HEAD(pkmap_map_wait);
static void flush_all_zero_pkmaps(void)
{
int i;
int need_flush = 0;

flush_cache_kmaps();

Expand Down Expand Up @@ -101,8 +102,10 @@ static void flush_all_zero_pkmaps(void)
&pkmap_page_table[i]);

set_page_address(page, NULL);
need_flush = 1;
}
flush_tlb_kernel_range(PKMAP_ADDR(0), PKMAP_ADDR(LAST_PKMAP));
if (need_flush)
flush_tlb_kernel_range(PKMAP_ADDR(0), PKMAP_ADDR(LAST_PKMAP));
}

/**
Expand Down

0 comments on commit b5d50c7

Please sign in to comment.