userfaultfd: wp: fault try one more time

For a swapin memory write fault, fault handler already retry once to
read the page in. userfaultfd can't do the retry again and fail. Give
another retry for userfaultfd in such case. gup isn't fixed yet, so will
return -EBUSY.

Cc: Andrea Arcangeli <>
Cc: Pavel Emelyanov <>
Cc: Rik van Riel <>
Cc: Kirill A. Shutemov <>
Cc: Mel Gorman <>
Cc: Hugh Dickins <>
Cc: Johannes Weiner <>
Signed-off-by: Shaohua Li <>
Signed-off-by: Andrea Arcangeli <>
27 files changed