mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
arm64: tlb: Justify non-leaf invalidation in flush_tlb_range()
Add a comment to explain why we can't get away with last-level invalidation in flush_tlb_range() Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
parent
0795edaf3f
commit
d8289d3a58
@ -182,6 +182,10 @@ static inline void __flush_tlb_range(struct vm_area_struct *vma,
|
||||
static inline void flush_tlb_range(struct vm_area_struct *vma,
|
||||
unsigned long start, unsigned long end)
|
||||
{
|
||||
/*
|
||||
* We cannot use leaf-only invalidation here, since we may be invalidating
|
||||
* table entries as part of collapsing hugepages or moving page tables.
|
||||
*/
|
||||
__flush_tlb_range(vma, start, end, false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user