[PATCH v3 12/14] mm: multi-gen LRU: walk_pte_range() use pte_offset_map_rw_nolock()

Muchun Song muchun.song at linux.dev
Thu Sep 5 22:23:05 AEST 2024



> On Sep 4, 2024, at 16:40, Qi Zheng <zhengqi.arch at bytedance.com> wrote:
> 
> In walk_pte_range(), we may modify the pte entry after holding the ptl, so
> convert it to using pte_offset_map_rw_nolock(). At this time, the
> pte_same() check is not performed after the ptl held, so we should get
> pmdval and do pmd_same() check to ensure the stability of pmd entry.
> 
> Signed-off-by: Qi Zheng <zhengqi.arch at bytedance.com>

Reviewed-by: Muchun Song <muchun.song at linux.dev>

Thanks.



More information about the Linuxppc-dev mailing list