Skip to content
Commit 719ea79e authored by Chris Metcalf's avatar Chris Metcalf
Browse files

arch/tile: fix up locking in pgtable.c slightly



We should be holding the init_mm.page_table_lock in shatter_huge_page()
since we are modifying the kernel page tables.  Then, only if we are
walking the other root page tables to update them, do we want to take
the pgd_lock.

Add a comment about taking the pgd_lock that we always do it with
interrupts disabled and therefore are not at risk from the tlbflush
IPI deadlock as is seen on x86.

Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 5f220704
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment