[PATCH 0/2] introduce __next_thread(), change next_thread()

From: Oleg Nesterov
Date: Thu Aug 24 2023 - 10:33:44 EST


Hello,

After document-while_each_thread-change-first_tid-to-use-for_each_thread.patch
in mm tree + this series

1. We have only one lockless user of next_thread(), task_group_seq_get_next().
I think it should be changed too.

2. We have only one user of task_struct->thread_group, thread_group_empty().
The next patches will change thread_group_empty() and kill ->thread_group.

Oleg.