introduce for_other_threads(p, t)
authorOleg Nesterov <oleg@redhat.com>
Mon, 30 Oct 2023 15:57:10 +0000 (16:57 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 11 Dec 2023 01:21:25 +0000 (17:21 -0800)
commit61a7a5e25fe79b6c43f1c49705a0294be113c4a5
tree247d5acb3d1621879885943b83802dfc064687a9
parenta9a1d6ad668f2ea0b5a77d0c4c7a41446d0801a8
introduce for_other_threads(p, t)

Cosmetic, but imho it makes the usage look more clear and simple, the new
helper doesn't require to initialize "t".

After this change while_each_thread() has only 3 users, and it is only
used in the do/while loops.

Link: https://lkml.kernel.org/r/20231030155710.GA9095@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/exec.c
include/linux/sched/signal.h
kernel/signal.c