Files
android_kernel_xiaomi_sm8450/kernel
Oleg Nesterov 9ca9786820 getrusage: use __for_each_thread()
[ Upstream commit 13b7bc60b5353371460a203df6c38ccd38ad7a3a ]

do/while_each_thread should be avoided when possible.

Plus this change allows to avoid lock_task_sighand(), we can use rcu
and/or sig->stats_lock instead.

Link: https://lkml.kernel.org/r/20230909172629.GA20454@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>
Stable-dep-of: f7ec1cd5cc7e ("getrusage: use sig->stats_lock rather than lock_task_sighand()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-15 10:48:22 -04:00
..
2024-02-23 08:42:15 +01:00
2023-01-14 10:16:24 +01:00
2023-12-20 15:44:30 +01:00
2020-08-12 10:58:02 -07:00
2023-01-14 10:15:20 +01:00
2020-07-27 14:31:12 -04:00
2024-03-15 10:48:22 -04:00