Re: [PATCH] change next_thread() to use list_next_entry_circular()
From: Chris Mason
Date: Sat Dec 05 2026 - 12:46:33 EST
On Sat, Dec 5, 2026, at 10:59 AM, Oleg Nesterov wrote:
> TODO: we actually need an list_next_entry_circular_rcu() which we
> don't have yet.
It looks like we don't need it if check_unsafe_exec() uses for_each_thread(),
like in patch 2 of my series. With your change, everything else that calls
next_thread() holds siglock or tasklist_lock.
-chris