Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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>

authored by

Andi Kleen and committed by
Linus Torvalds
094804c5 f96c3bbe

-2
-2
arch/x86_64/mm/pageattr.c
··· 220 220 down_read(&init_mm.mmap_sem); 221 221 df = xchg(&df_list, NULL); 222 222 up_read(&init_mm.mmap_sem); 223 - if (!df) 224 - return; 225 223 flush_map((df && !df->next) ? df->address : 0); 226 224 for (; df; df = next_df) { 227 225 next_df = df->next;