Files
linux/kernel
Oleg Nesterov ed5378a387 taskstats: fill_stats_for_tgid: use for_each_thread()
do/while_each_thread should be avoided when possible.

Plus I _think_ this change allows to avoid lock_task_sighand() but I am
not sure, I forgot everything about taskstats.  In any case, this code
does not look right in that the same thread can be accounted twice:
taskstats_exit() can account the exiting thread in signal->stats and drop
->siglock but this thread is still on the thread-group list, so
lock_task_sighand() can't help.

Link: https://lkml.kernel.org/r/20230909214951.GA24274@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-10-04 10:41:57 -07:00
..
2022-09-26 10:13:13 -07:00
2023-08-18 10:18:49 -07:00
2023-10-04 10:41:56 -07:00
2023-10-04 10:41:56 -07:00
2023-03-24 11:01:29 +01:00
2023-10-04 10:41:56 -07:00
2023-08-23 09:38:17 +09:00
2023-09-19 13:21:33 -07:00
2023-10-04 10:41:57 -07:00
2023-08-15 15:26:17 -07:00