Message ID | 5a05bc1e-c5d0-4bb9-9b76-e3da5f8b955f@ghiti.fr (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [GIT,PULL] RISC-V Patches for the 6.15 Merge Window, Part 2 | expand |
diff --git a/arch/riscv/mm/tlbflush.c b/arch/riscv/mm/tlbflush.c index c25a40aa2fe05..c22d5eb2b1851 100644 --- a/arch/riscv/mm/tlbflush.c +++ b/arch/riscv/mm/tlbflush.c @@ -192,10 +192,9 @@ bool arch_tlbbatch_should_defer(struct mm_struct *mm) void arch_tlbbatch_add_pending(struct arch_tlbflush_unmap_batch *batch, struct mm_struct *mm, unsigned long start, unsigned long end) { - unsigned long start = uaddr & PAGE_MASK; - cpumask_or(&batch->cpumask, &batch->cpumask, mm_cpumask(mm)); - mmu_notifier_arch_invalidate_secondary_tlbs(mm, start, start + PAGE_SIZE); + mmu_notifier_arch_invalidate_secondary_tlbs(mm, start & PAGE_MASK, + (end & PAGE_MASK) + PAGE_SIZE);