]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: prevent do_swap_page from handling page faults under VMA lock
authorSuren Baghdasaryan <surenb@google.com>
Sun, 29 May 2022 20:20:27 +0000 (13:20 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 4 Jan 2023 20:59:26 +0000 (15:59 -0500)
commit024d69d67743fc03124d7ba0cb21fbbc3b7f1824
treeff357d94b1b5ef1b06df7e98b42b8da805e9403e
parent592fb19f3c55cd420ff7ed1a5ac6277c466ff6b2
mm: prevent do_swap_page from handling page faults under VMA lock

Due to the possibility of do_swap_page dropping mmap_lock, abort fault
handling under VMA lock and retry holding mmap_lock. This can be handled
more gracefully in the future.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Laurent Dufour <laurent.dufour@fr.ibm.com>
mm/memory.c