Re: [PATCH v2 8/8] security/landlock: convert thread iterator to for_each_thread_rculock

From: Gregory Price

Date: Mon Sep 07 2026 - 11:49:27 EST


On Mon, Sep 07, 2026 at 04:13:34PM +0800, Ye Liu wrote:
> From: Ye Liu <liuye@xxxxxxxxxx>
>
> Replace guard(rcu)() + for_each_thread() with for_each_thread_rculock(),
> which scopes the RCU read lock to the loop body via scoped_guard(rcu).
>
> No functional change.
>
> Signed-off-by: Ye Liu <liuye@xxxxxxxxxx>
> Reviewed-by: Justin Suess <utilityemal77@xxxxxxxxx>
> Reviewed-by: Günther Noack <gnoack3000@xxxxxxxxx>

Reviewed-by: Gregory Price (Meta) <gourry@xxxxxxxxxx>