mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[PATCH] x86_64: Fix change_page_attr cache flushing
Noticed by Terence Ripperda Undo wrong change in global_flush_tlb. We need to flush the caches in all cases, not just when pages were reverted. This was a bogus optimization added earlier, but it was wrong. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
f96c3bbe91
commit
094804c5a1
1 changed files with 0 additions and 2 deletions
|
@ -220,8 +220,6 @@ void global_flush_tlb(void)
|
|||
down_read(&init_mm.mmap_sem);
|
||||
df = xchg(&df_list, NULL);
|
||||
up_read(&init_mm.mmap_sem);
|
||||
if (!df)
|
||||
return;
|
||||
flush_map((df && !df->next) ? df->address : 0);
|
||||
for (; df; df = next_df) {
|
||||
next_df = df->next;
|
||||
|
|
Loading…
Reference in a new issue