aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorMuchun Song <[email protected]>2023-11-27 16:46:42 +0800
committerAndrew Morton <[email protected]>2023-12-10 16:51:53 -0800
commitb123d09304d8676ba327b72a39a6d0b79b6f604c (patch)
treeed7059a9d6e8928a53ae4c437753c5221c9121b5 /tools/perf/scripts/python/bin/stackcollapse-report
parent829c3151f0f89f98ed2d89f0e0fc367649c1cd34 (diff)
mm: pagewalk: assert write mmap lock only for walking the user page tables
The 8782fb61cc848 ("mm: pagewalk: Fix race between unmap and page walker") introduces an assertion to walk_page_range_novma() to make all the users of page table walker is safe. However, the race only exists for walking the user page tables. And it is ridiculous to hold a particular user mmap write lock against the changes of the kernel page tables. So only assert at least mmap read lock when walking the kernel page tables. And some users matching this case could downgrade to a mmap read lock to relief the contention of mmap lock of init_mm, it will be nicer in hugetlb (only holding mmap read lock) in the next patch. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Muchun Song <[email protected]> Acked-by: Mike Kravetz <[email protected]> Cc: Kefeng Wang <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions