aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorSuren Baghdasaryan <[email protected]>2023-02-27 09:36:23 -0800
committerAndrew Morton <[email protected]>2023-04-05 20:03:00 -0700
commit2ac0af1b66e3b66307f53b1cc446514308ec466d (patch)
tree601322705eed941a97bdf9f872df22da8fa01765 /tools/perf/scripts/python/bin
parent50ee32537206140e4cf6e47024be29a84d458d49 (diff)
mm: fall back to mmap_lock if vma->anon_vma is not yet set
When vma->anon_vma is not set, page fault handler will set it by either reusing anon_vma of an adjacent VMA if VMAs are compatible or by allocating a new one. find_mergeable_anon_vma() walks VMA tree to find a compatible adjacent VMA and that requires not only the faulting VMA to be stable but also the tree structure and other VMAs inside that tree. Therefore locking just the faulting VMA is not enough for this search. Fall back to taking mmap_lock when vma->anon_vma is not set. This situation happens only on the first page fault and should not affect overall performance. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Suren Baghdasaryan <[email protected]> Reviewed-by: Hyeonggon Yoo <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions