From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83AF22135C5 for ; Thu, 5 Feb 2026 01:46:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770256013; cv=none; b=btcrivU8vaRoWYKWG08xABjKBa61G2bUDt5eQgP1Byp+xCLQNrnvb8NlUDOGb0rOwD7oQgZ0QNTgqLTp9WK5PKzYkIj9mRl3V1rmqhQcoVeI4fj7of6hCiFKYkwhh6xEkLywyZzX2Pu7ilrW4cAaPRPP84CIQzOHttJbJHnfdYw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770256013; c=relaxed/simple; bh=Jn0tURUv7jVaHct64j4yyI4cl+8f0h00aFkyfr381rU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YtlgHIGpNP6arWYdq8eReV1oyGpCmSuUhB62MmzLQmd07n57CGlboAlVRBz3Um5sWneEjDm0IXm8BelERSDlgQc+dixxMrp33C5xTDVfVPi1Nj4d2rWr5l1eX2rQY/pQxVC40ibD04EeDSa+cW463yKNPAVaDu/pcLeN3uq9lis= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=G1tNkiPC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="G1tNkiPC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9E44C4CEF7; Thu, 5 Feb 2026 01:46:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770256013; bh=Jn0tURUv7jVaHct64j4yyI4cl+8f0h00aFkyfr381rU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G1tNkiPCtcnzOAEHD7G1rOpMFdo+hzBR36UfK206yvuXM+o7G44X7pXOkzTkNTJC4 60cuh7Sq5aaiWkgjkakTVPwl5NDkMzbb+y1ZH3dwQWbHu0acpgDG3iXIF+FEGtw8sl BQpXIRxmy5qnYYUL3/4ZYLCd3W9jctM4Ilo+AIwWExnDOS5HGrj4UgdqID7VZBT4J5 kKKEJQq18S0c1AQ1tZ6NMTr4OLUpnQ/u1HUFTqiIpSiHrbYMBIQnsZRhSua2jq+zNr L71b6+tpZgxoHGmETx387yL2qybsnrxUuBKBTnFoDkNKFFFP1tF7m9mj0/7Qb/s1Zy TXF1csywk6bug== From: SeongJae Park To: lirongqing Cc: SeongJae Park , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R . Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/mmu_notifiers: Use hlist_for_each_entry_srcu() for SRCU list traversal Date: Wed, 4 Feb 2026 17:46:49 -0800 Message-ID: <20260205014650.68624-1-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260204080937.2472-1-lirongqing@baidu.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Wed, 4 Feb 2026 03:09:37 -0500 lirongqing wrote: > From: Li RongQing > > 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 Acked-by: SeongJae Park Thanks, SJ [...]