diff options
| author | Yu Zhao <[email protected]> | 2024-07-18 22:25:03 -0600 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-01 20:25:45 -0700 |
| commit | c2a967f6ab0ec896648c0497d3dc15d8f136b148 (patch) | |
| tree | 2fdb22efd74e640ff1f7132efddd9b96c291589a /tools/perf/scripts/python/bin | |
| parent | 9eace7e8e60c3ac821c417bd3f3aa5949e58a57a (diff) | |
mm/hugetlb_vmemmap: don't synchronize_rcu() without HVO
hugetlb_vmemmap_optimize_folio() and hugetlb_vmemmap_restore_folio() are
wrappers meant to be called regardless of whether HVO is enabled.
Therefore, they should not call synchronize_rcu(). Otherwise, it
regresses use cases not enabling HVO.
So move synchronize_rcu() to __hugetlb_vmemmap_optimize_folio() and
__hugetlb_vmemmap_restore_folio(), and call it once for each batch of
folios when HVO is enabled.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: bd225530a4c7 ("mm/hugetlb_vmemmap: fix race with speculative PFN walkers")
Signed-off-by: Yu Zhao <[email protected]>
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-lkp/[email protected]
Reported-by: Janosch Frank <[email protected]>
Tested-by: Marc Hartmayer <[email protected]>
Acked-by: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions