]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ppc book3s32: Fix tlb rcu lock
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 16 Mar 2021 19:55:54 +0000 (15:55 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 16 Mar 2021 19:55:54 +0000 (15:55 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
arch/powerpc/mm/book3s32/tlb.c

index 382c6316c94e1c21043ff6addf84a1fa7a2845c4..7920eb7ce3b3b19fcdfc8674918a355df5dac910 100644 (file)
@@ -89,8 +89,10 @@ void hash__flush_tlb_mm(struct mm_struct *mm)
         * unmap_region or exit_mmap, but not from vmtruncate on SMP -
         * but it seems dup_mmap is the only SMP case which gets here.
         */
+       rcu_read_lock();
        mas_for_each(&mas, mp, ULONG_MAX)
                flush_range(mp->vm_mm, mp->vm_start, mp->vm_end);
+       rcu_read_unlock();
 }
 EXPORT_SYMBOL(hash__flush_tlb_mm);