[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20260205014650.68624-1-sj@kernel.org>
Date: Wed, 4 Feb 2026 17:46:49 -0800
From: SeongJae Park <sj@...nel.org>
To: lirongqing <lirongqing@...du.com>
Cc: SeongJae Park <sj@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
David Hildenbrand <david@...nel.org>,
Lorenzo Stoakes <lorenzo.stoakes@...cle.com>,
"Liam R . Howlett" <Liam.Howlett@...cle.com>,
Vlastimil Babka <vbabka@...e.cz>,
Mike Rapoport <rppt@...nel.org>,
Suren Baghdasaryan <surenb@...gle.com>,
Michal Hocko <mhocko@...e.com>,
linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm/mmu_notifiers: Use hlist_for_each_entry_srcu() for SRCU list traversal
On Wed, 4 Feb 2026 03:09:37 -0500 lirongqing <lirongqing@...du.com> wrote:
> From: Li RongQing <lirongqing@...du.com>
>
> The mmu_notifier_subscriptions list is protected by SRCU. While the
> current code uses hlist_for_each_entry_rcu() with an explicit SRCU
> lockdep check, it is more appropriate to use the dedicated
> hlist_for_each_entry_srcu() macro.
>
> This change aligns the code with the preferred kernel API for SRCU-protected
> lists, improving code clarity and ensuring that the synchronization
> method is explicitly documented by the iterator name itself.
>
> Signed-off-by: Li RongQing <lirongqing@...du.com>
Acked-by: SeongJae Park <sj@...nel.org>
Thanks,
SJ
[...]
Powered by blists - more mailing lists