powerpc: Fix __get_user_pages_fast() irq handling
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 14 Nov 2013 04:01:43 +0000 (15:01 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 20 Nov 2013 23:33:37 +0000 (10:33 +1100)
commit95f715b08fa4a953771398d20cbe35a6803ea41d
tree6ccc7e13cb8a501232b3d5b153222fe5cb3c4b7b
parent0b5381a61821d1c074c76e01b27bf5f69cf2dd01
powerpc: Fix __get_user_pages_fast() irq handling

__get_user_pages_fast() may be called with interrupts disabled (see e.g.
get_futex_key() in kernel/futex.c) and therefore should use local_irq_save()
and local_irq_restore() instead of local_irq_disable()/enable().

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
CC: <stable@vger.kernel.org> [v3.12]
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/gup.c