[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <2C926DC1-AE51-42CD-8351-62A130D0BC4A@linux.dev>
Date: Thu, 26 Sep 2024 15:08:38 +0800
From: Muchun Song <muchun.song@...ux.dev>
To: Qi Zheng <zhengqi.arch@...edance.com>
Cc: david@...hat.com,
hughd@...gle.com,
willy@...radead.org,
vbabka@...nel.org,
akpm@...ux-foundation.org,
rppt@...nel.org,
vishal.moola@...il.com,
peterx@...hat.com,
ryan.roberts@....com,
christophe.leroy2@...soprasteria.com,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org,
linux-arm-kernel@...ts.infradead.org,
linuxppc-dev@...ts.ozlabs.org
Subject: Re: [PATCH v5 10/13] mm: page_vma_mapped_walk: map_pte() use
pte_offset_map_rw_nolock()
> On Sep 26, 2024, at 14:46, Qi Zheng <zhengqi.arch@...edance.com> wrote:
>
> In the caller of map_pte(), we may modify the pvmw->pte after acquiring
> the pvmw->ptl, so convert it to using pte_offset_map_rw_nolock(). At
> this time, the pte_same() check is not performed after the pvmw->ptl held,
> so we should get pmdval and do pmd_same() check to ensure the stability of
> pvmw->pmd.
>
> Signed-off-by: Qi Zheng <zhengqi.arch@...edance.com>
Reviewed-by: Muchun Song <muchun.song@...ux.dev>
Thanks.
Powered by blists - more mailing lists