Oleg Nesterov
5ffd2c37cb
kill do_each_thread()
...
Eric has pointed out that we still have 3 users of do_each_thread().
Change them to use for_each_process_thread() and kill this helper.
There is a subtle change, after do_each_thread/while_each_thread g == t ==
&init_task, while after for_each_process_thread() they both point to
nowhere, but this doesn't matter.
> Why is for_each_process_thread() better than do_each_thread()?
Say, for_each_process_thread() is rcu safe, do_each_thread() is not.
And certainly
for_each_process_thread(p, t) {
do_something(p, t);
}
looks better than
do_each_thread(p, t) {
do_something(p, t);
} while_each_thread(p, t);
And again, there are only 3 users of this awkward helper left. It should
have been killed years ago and in fact I thought it had already been
killed. It uses while_each_thread() which needs some changes.
Link: https://lkml.kernel.org/r/20230817163708.GA8248@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com >
Reviewed-by: Kees Cook <keescook@chromium.org >
Cc: "Christian Brauner (Microsoft)" <brauner@kernel.org >
Cc: Eric W. Biederman <ebiederm@xmission.com >
Cc: Jiri Slaby <jirislaby@kernel.org > # tty/serial
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2023-08-21 13:46:25 -07:00
..
2023-06-22 09:43:40 +02:00
2023-06-26 12:47:20 -07:00
2023-07-04 19:42:27 +01:00
2023-06-29 10:11:10 -07:00
2023-07-03 12:46:47 -07:00
2023-06-26 17:07:53 -07:00
2023-06-19 15:06:07 -04:00
2023-07-03 10:55:04 -07:00
2023-06-29 21:01:17 -07:00
2023-06-28 16:43:10 -07:00
2023-06-22 19:41:01 -07:00
2023-06-27 10:47:08 -04:00
2023-06-28 10:59:38 -07:00
2023-07-06 09:48:31 -07:00
2023-06-28 13:32:47 -07:00
2023-08-21 13:46:25 -07:00
2023-06-29 15:28:33 -07:00
2023-06-21 16:31:44 +05:30
2023-06-29 10:11:10 -07:00
2023-07-01 14:38:25 -07:00
2023-06-22 08:59:56 +02:00
2023-07-03 13:23:10 -07:00
2023-06-26 17:11:53 -07:00
2023-07-06 22:25:06 -07:00
2023-06-21 18:44:56 +02:00
2023-08-18 10:18:56 -07:00
2023-07-01 07:04:29 -04:00
2023-08-18 10:18:56 -07:00
2023-06-22 13:57:41 -07:00
2023-06-30 11:57:07 -07:00
2023-07-05 16:36:12 -06:00
2023-07-20 13:29:25 -06:00
2023-06-26 12:47:20 -07:00
2023-07-08 09:29:31 -07:00
2023-06-29 13:39:51 -07:00
2023-06-19 16:19:20 -07:00
2023-06-28 10:28:11 -07:00
2023-06-26 11:14:18 +02:00
2023-06-26 08:55:22 -07:00
2023-06-19 16:19:28 -07:00
2023-06-22 17:10:09 +02:00
2023-07-04 13:50:38 -07:00
2023-06-26 11:14:18 +02:00
2023-06-26 13:59:56 -07:00
2023-06-26 13:59:56 -07:00
2023-06-23 16:15:36 +08:00
2023-06-26 07:54:23 -06:00
2023-07-04 13:50:38 -07:00
2023-07-03 13:47:06 +02:00
2023-06-19 16:19:23 -07:00
2023-06-19 16:19:20 -07:00
2023-06-30 21:35:52 -07:00
2023-06-22 21:17:10 +09:00
2023-06-22 21:21:06 +09:00
2023-06-30 16:38:27 -07:00
2023-06-26 11:14:18 +02:00
2023-07-04 11:02:34 -07:00
2023-06-19 16:19:05 -07:00
2023-06-29 13:39:51 -07:00
2023-06-19 18:18:04 +02:00
2023-07-28 20:01:36 -04:00
2023-08-18 10:18:57 -07:00
2023-08-18 10:18:57 -07:00
2023-06-19 09:02:51 +02:00
2023-06-23 16:59:33 -07:00
2023-06-20 20:18:39 -07:00
2023-06-22 19:52:09 +02:00
2023-06-28 12:47:30 -07:00
2023-06-26 11:14:18 +02:00
2023-06-26 07:47:11 +02:00
2023-07-08 10:07:14 +01:00
2023-07-10 23:09:21 -04:00
2023-07-03 09:27:12 +01:00
2023-08-21 13:46:24 -07:00
2023-06-29 15:06:32 +01:00
2023-08-18 10:18:59 -07:00
2023-07-01 07:20:04 -04:00
2023-07-03 11:26:05 -07:00
2023-06-30 11:57:07 -07:00
2023-08-18 10:19:00 -07:00
2023-06-27 14:14:30 -07:00
2023-06-27 14:14:30 -07:00
2023-08-18 10:18:59 -07:00
2023-06-19 16:19:05 -07:00
2023-06-19 16:19:35 -07:00
2023-06-19 16:19:04 -07:00
2023-06-19 16:19:12 -07:00
2023-06-23 16:59:31 -07:00
2023-07-27 13:07:04 -07:00
2023-07-27 13:07:04 -07:00
2023-07-27 13:07:04 -07:00
2023-06-28 10:28:11 -07:00
2023-07-03 12:56:23 -07:00
2023-06-28 10:59:38 -07:00
2023-06-20 20:17:10 -07:00
2023-06-20 20:18:39 -07:00
2023-06-26 11:14:18 +02:00
2023-06-18 11:16:00 +01:00
2023-06-24 15:50:13 -07:00
2023-06-24 14:52:28 -07:00
2023-06-26 13:27:51 +02:00
2023-06-19 15:08:12 -04:00
2023-06-19 12:10:48 -04:00
2023-07-25 00:30:02 -05:00
2023-08-18 10:19:00 -07:00
2023-06-22 13:57:41 -07:00
2023-07-10 09:12:31 -07:00
2023-06-19 16:19:00 -07:00
2023-06-23 16:59:30 -07:00
2023-07-03 12:46:47 -07:00
2023-06-30 15:06:45 -07:00
2023-06-23 15:05:28 -05:00
2023-06-23 15:05:28 -05:00
2023-08-18 10:18:56 -07:00
2023-07-04 13:50:38 -07:00
2023-07-01 08:58:41 -07:00
2023-06-19 16:19:25 -07:00
2023-06-27 09:33:54 -07:00
2023-06-30 09:04:01 -07:00
2023-07-24 09:51:51 +02:00
2023-06-22 21:21:06 +09:00
2023-06-26 11:14:18 +02:00
2023-07-10 09:52:30 +02:00
2023-07-10 09:52:30 +02:00
2023-06-20 09:02:33 +01:00
2023-06-19 16:19:04 -07:00
2023-08-18 10:19:00 -07:00
2023-07-04 13:50:38 -07:00
2023-07-12 12:01:16 -07:00
2023-06-26 11:14:18 +02:00
2023-06-23 16:59:28 -07:00
2023-06-28 10:28:11 -07:00
2023-06-21 17:55:53 +02:00
2023-07-04 13:50:38 -07:00
2023-06-24 15:50:13 -07:00
2023-06-26 11:14:18 +02:00
2023-06-28 16:43:10 -07:00
2023-08-21 13:46:24 -07:00
2023-07-04 13:50:38 -07:00
2023-06-20 20:44:38 -07:00
2023-06-28 10:28:11 -07:00
2023-06-23 16:59:29 -07:00
2023-06-19 16:19:12 -07:00
2023-07-06 10:06:04 -07:00
2023-07-20 12:34:18 -07:00
2023-07-24 09:51:31 +02:00
2023-06-28 10:59:38 -07:00
2023-06-28 16:43:10 -07:00
2023-06-19 16:19:28 -07:00
2023-06-27 10:47:08 -04:00
2023-06-27 10:47:09 -04:00
2023-06-23 12:08:14 -07:00
2023-06-19 16:19:27 -07:00