Thread (47 messages) flat view 47 messages, 9 authors, 15d ago

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

From: SJ Park <sj@kernel.org>
Date: 2026-09-07 21:44:39
Also in: linux-fsdevel, linux-pm, linux-security-module, linux-trace-kernel, lkml, rcu

On Mon,  7 Sep 2026 16:13:34 +0800 Ye Liu [off-list ref] wrote:
From: Ye Liu <liuye@kylinos.cn>

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@kylinos.cn>
Reviewed-by: Justin Suess <redacted>
Reviewed-by: Günther Noack <redacted>
Reviewed-by: SJ Park <sj@kernel.org>


Thanks,
SJ

[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help