]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Take ctx_alloc_lock properly in hugetlb_setup().
authorDavid S. Miller <davem@davemloft.net>
Wed, 25 May 2016 19:51:20 +0000 (12:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 May 2016 19:51:32 +0000 (12:51 -0700)
commiteb6611c0b6eab963b9780e8e07e8231446693d8f
tree003c9dc20c48b0e75594c9dce095accd33ed55c4
parent10724fa14d7fe99c57d1fa17312a3f30b675be85
sparc64: Take ctx_alloc_lock properly in hugetlb_setup().

On cheetahplus chips we take the ctx_alloc_lock in order to
modify the TLB lookup parameters for the indexed TLBs, which
are stored in the context register.

This is called with interrupts disabled, however ctx_alloc_lock
is an IRQ safe lock, therefore we must take acquire/release it
properly with spin_{lock,unlock}_irq().

Reported-by: Meelis Roos <mroos@linux.ee>
Tested-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/init_64.c