aboutsummaryrefslogtreecommitdiffstats
path: root/mm/debug_vm_pgtable.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2023-07-24 18:54:10 +0000
committerAndrew Morton <[email protected]>2023-08-18 17:12:53 +0000
commit063e60d806151f3733acabccb62a463d55fac469 (patch)
tree67db5dafc4d71cc8e29641f2091d15534f59f504 /mm/debug_vm_pgtable.c
parentmm: handle swap and NUMA PTE faults under the VMA lock (diff)
downloadkernel-063e60d806151f3733acabccb62a463d55fac469.tar.gz
kernel-063e60d806151f3733acabccb62a463d55fac469.zip
mm: handle faults that merely update the accessed bit under the VMA lock
Move FAULT_FLAG_VMA_LOCK check out of handle_pte_fault(). This should have a significant performance improvement for mmaped files. Write faults (on read-only shared pages) still take the mmap lock as we do not want to audit all the implementations of ->pfn_mkwrite() and ->page_mkwrite(). However write-faults on private mappings are handled under the VMA lock. [[email protected]: address "suspicious RCU usage" warning] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Cc: Arjun Roy <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: Punit Agrawal <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/debug_vm_pgtable.c')
0 files changed, 0 insertions, 0 deletions