OSDN Git Service

mm: make the page fault mmap locking killable
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Jun 2023 23:17:48 +0000 (16:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 Jun 2023 21:12:57 +0000 (14:12 -0700)
commiteda0047296a16d65a7f2bc60a408f70d178b2014
tree934ab40aff1cafd4ca1da8a2c5ead6aba7adabe1
parentc2508ec5a58db67093f4fb8bf89a9a7c53a109e9
mm: make the page fault mmap locking killable

This is done as a separate patch from introducing the new
lock_mm_and_find_vma() helper, because while it's an obvious change,
it's not what x86 used to do in this area.

We already abort the page fault on fatal signals anyway, so why should
we wait for the mmap lock only to then abort later? With the new helper
function that returns without the lock held on failure anyway, this is
particularly easy and straightforward.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c