Re: [PATCH 2/8] mm/oom_kill: convert process/thread iterators to for_each_*_rcu

From: SJ Park

Date: Fri Sep 04 2026 - 20:33:20 EST


On Fri, 4 Sep 2026 16:29:54 +0800 Ye Liu <ye.liu@xxxxxxxxx> wrote:

> From: Ye Liu <liuye@xxxxxxxxxx>
>
> Replace the manual rcu_read_lock()/rcu_read_unlock() pairs wrapping
> for_each_process()/for_each_thread() loops with for_each_process_rcu()
> and for_each_thread_rcu(), so that the RCU read-side critical section
> is scoped to the loop body.

Looks clean to me :)

>
> No functional change.
>
> Signed-off-by: Ye Liu <liuye@xxxxxxxxxx>

Reviewed-by: SJ Park <sj@xxxxxxxxxx>


Thanks,
SJ

[...]