mm: allow ->huge_fault() to be called without the mmap_lock held
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 18 Aug 2023 20:23:34 +0000 (21:23 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 24 Aug 2023 23:20:29 +0000 (16:20 -0700)
commit40d49a3c9e4a0e5cf7a6fcebc8d4d7d63d1f3f1b
tree3bd5bfde4e95a2bb85c40cf795a8418eef084760
parent051ddcfeb1bdbae45e660c0db2468d29ca15c6c2
mm: allow ->huge_fault() to be called without the mmap_lock held

Remove the checks for the VMA lock being held, allowing the page fault
path to call into the filesystem instead of retrying with the mmap_lock
held.  This will improve scalability for DAX page faults.  Also update the
documentation to match (and fix some other changes that have happened
recently).

Link: https://lkml.kernel.org/r/20230818202335.2739663-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/filesystems/locking.rst
Documentation/filesystems/porting.rst
mm/memory.c