Merge tag 'riscv-for-linus-6.9-mw2' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / arch / riscv / include / asm / tlb.h
index a0b8b853503fe7994e1c95410f5613a9b40fefb4..1f6c38420d8e0764d74a27e870f74d055a67f08e 100644 (file)
@@ -34,7 +34,7 @@ static inline void __tlb_remove_table(void *table)
 static inline void tlb_flush(struct mmu_gather *tlb)
 {
 #ifdef CONFIG_MMU
-       if (tlb->fullmm || tlb->need_flush_all)
+       if (tlb->fullmm || tlb->need_flush_all || tlb->freed_tables)
                flush_tlb_mm(tlb->mm);
        else
                flush_tlb_mm_range(tlb->mm, tlb->start, tlb->end,