]> www.infradead.org Git - users/jedix/linux-maple.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)
committerAllen Pais <allen.pais@oracle.com>
Thu, 15 Sep 2016 06:54:13 +0000 (12:24 +0530)
commitf7b5bfd45edab6d99bb1bb36187b7ce979e241f8
treed912e16a5712f10df5d837fe75e7a0e5843dd357
parentbe620f25c8fb15097cf5e9a73cccb443af3373ce
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().

Orabug: 24671126

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