powerpc/mm: Handle VM_FAULT_RETRY earlier
authorLaurent Dufour <ldufour@linux.vnet.ibm.com>
Tue, 14 Feb 2017 16:45:11 +0000 (17:45 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 Mar 2017 11:09:11 +0000 (22:09 +1100)
commit14c02e419a395c4bd7950175fc47eda1ecaa8c69
treec35121af999465f3d28fbf445df00b0dade8599f
parentc2294e0ffe741c8b34c630a71c7dc44d30503538
powerpc/mm: Handle VM_FAULT_RETRY earlier

In do_page_fault() if handle_mm_fault() returns VM_FAULT_RETRY, retry
the page fault handling before anything else.

This would simplify the handling of the mmap_sem lock in this part of
the code.

Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/fault.c