diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2023-07-24 19:54:04 +0100 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-08-18 10:12:51 -0700 |
| commit | c4fd825e188471d4d2796e02729dd029b3b23210 (patch) | |
| tree | b2b8c07206d3a34bfaaea4941b9fa7181cbce497 /tools/perf/scripts/python | |
| parent | 4ec31152a80d83d74d231d964703a721236244ef (diff) | |
mm: handle PUD faults under the VMA lock
Postpone checking the VMA_LOCK flag until we've attempted to handle faults
on PUDs. There's a mild upside to this patch in that we'll allocate the
page tables while under the VMA lock rather than the mmap lock, reducing
the hold time on the mmap lock, since the retry will find the page tables
already populated. The real purpose here is to make a commit that shows
we don't call ->huge_fault under the VMA lock. We do now handle setting
the accessed bit on a PUD fault under the VMA lock, but that doesn't seem
likely to be a measurable difference.
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions