Commit aa5a10b
fs/proc/task_mmu: hold PTL in pagemap_hugetlb_range and gather_hugetlb_stats
Hold PTL in pagemap_hugetlb_range() and gather_hugetlb_stats() to avoid
operating on stale page, as pagemap_pmd_range() and gather_pte_stats()
have done.
Link: https://lkml.kernel.org/r/20250724090958.455887-3-tujinjiang@huawei.com
Signed-off-by: Jinjiang Tu <tujinjiang@huawei.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Andrei Vagin <avagin@gmail.com>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Brahmajit Das <brahmajit.xyz@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: David Rientjes <rientjes@google.com>
Cc: Dev Jain <dev.jain@arm.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Joern Engel <joern@logfs.org>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 45d19b4 commit aa5a10b
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2021 | 2021 | | |
2022 | 2022 | | |
2023 | 2023 | | |
| 2024 | + | |
2024 | 2025 | | |
2025 | 2026 | | |
2026 | 2027 | | |
2027 | 2028 | | |
2028 | 2029 | | |
2029 | 2030 | | |
| 2031 | + | |
2030 | 2032 | | |
2031 | 2033 | | |
2032 | 2034 | | |
| |||
2054 | 2056 | | |
2055 | 2057 | | |
2056 | 2058 | | |
2057 | | - | |
| 2059 | + | |
2058 | 2060 | | |
2059 | 2061 | | |
2060 | 2062 | | |
2061 | 2063 | | |
| 2064 | + | |
2062 | 2065 | | |
2063 | 2066 | | |
2064 | 2067 | | |
| |||
3132 | 3135 | | |
3133 | 3136 | | |
3134 | 3137 | | |
3135 | | - | |
| 3138 | + | |
3136 | 3139 | | |
3137 | 3140 | | |
| 3141 | + | |
3138 | 3142 | | |
| 3143 | + | |
| 3144 | + | |
3139 | 3145 | | |
3140 | | - | |
| 3146 | + | |
3141 | 3147 | | |
3142 | 3148 | | |
3143 | 3149 | | |
3144 | 3150 | | |
3145 | 3151 | | |
| 3152 | + | |
| 3153 | + | |
3146 | 3154 | | |
3147 | 3155 | | |
3148 | 3156 | | |
| |||
0 commit comments