[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250624141553.17afe765c0f692b7a7ec007a@linux-foundation.org>
Date: Tue, 24 Jun 2025 14:15:53 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Xavier Xia <xavier.qyxia@...il.com>
Cc: ryan.roberts@....com, will@...nel.org, 21cnbao@...il.com,
ioworker0@...il.com, dev.jain@....com, catalin.marinas@....com,
david@...hat.com, gshan@...hat.com, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-mm@...ck.org, willy@...radead.org,
xavier_qy@....com, ziy@...dia.com, Barry Song <baohua@...nel.org>
Subject: Re: [PATCH v7] arm64/mm: Optimize loop to reduce redundant
operations of contpte_ptep_get
On Tue, 24 Jun 2025 23:25:49 +0800 Xavier Xia <xavier.qyxia@...il.com> wrote:
> This commit optimizes the contpte_ptep_get and contpte_ptep_get_lockless
> function by adding early termination logic. It checks if the dirty and
> young bits of orig_pte are already set and skips redundant bit-setting
> operations during the loop. This reduces unnecessary iterations and
> improves performance.
Thanks, I added this to mm.git for some testing. But perhaps the ARM
tree would be a better merge path - more testing, at least.
Powered by blists - more mailing lists