aboutsummaryrefslogtreecommitdiff
path: root/lib/kstrtox.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2023-08-23 19:08:06 +0200
committerAndrew Morton <[email protected]>2023-08-24 16:25:15 -0700
commitdce8f8ed1de1d9d6d27c5ccd202ce4ec163b100c (patch)
tree93e6156402383138221d53cb0937d28cefa97cf0 /lib/kstrtox.c
parented1af26cd24811c3ddb5e7a276e3c6362c989bba (diff)
document while_each_thread(), change first_tid() to use for_each_thread()
Add the comment to explain that while_each_thread(g,t) is not rcu-safe unless g is stable (e.g. current). Even if g is a group leader and thus can't exit before t, t or another sub-thread can exec and remove g from the thread_group list. The only lockless user of while_each_thread() is first_tid() and it is fine in that it can't loop forever, yet for_each_thread() looks better and I am going to change while_each_thread/next_thread. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Oleg Nesterov <[email protected]> Cc: Eric W. Biederman <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/kstrtox.c')
0 files changed, 0 insertions, 0 deletions