Christian Brauner
cad6967ac1
fork: introduce kernel_clone()
...
The old _do_fork() helper doesn't follow naming conventions of in-kernel
helpers for syscalls. The process creation cleanup in [1] didn't change the
name to something more reasonable mainly because _do_fork() was used in quite a
few places. So sending this as a separate series seemed the better strategy.
This commit does two things:
1. renames _do_fork() to kernel_clone() but keeps _do_fork() as a simple static
inline wrapper around kernel_clone().
2. Changes the return type from long to pid_t. This aligns kernel_thread() and
kernel_clone(). Also, the return value from kernel_clone that is surfaced in
fork(), vfork(), clone(), and clone3() is taken from pid_vrn() which returns
a pid_t too.
Follow-up patches will switch each caller of _do_fork() and each place where it
is referenced over to kernel_clone(). After all these changes are done, we can
remove _do_fork() completely and will only be left with kernel_clone().
[1]: 9ba27414f2 ("Merge tag 'fork-v5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux")
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Matthew Wilcox (Oracle) <willy@infradead.org >
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org >
Link: https://lore.kernel.org/r/20200819104655.436656-2-christian.brauner@ubuntu.com
2020-08-20 13:12:57 +02:00
..
2020-06-15 23:08:31 -05:00
2020-07-24 02:19:08 -07:00
2020-08-12 10:57:59 -07:00
2020-08-05 20:13:21 -07:00
2020-08-12 10:57:59 -07:00
2020-08-07 12:58:11 -07:00
2020-08-15 08:09:38 -07:00
2020-08-06 16:43:36 -07:00
2020-08-05 20:13:21 -07:00
2020-08-07 08:54:16 +02:00
2020-08-15 08:18:22 -07:00
2020-08-20 13:12:57 +02:00
2020-08-12 10:57:59 -07:00
2020-08-15 08:26:55 -07:00
2020-08-05 20:13:21 -07:00
2020-08-12 10:57:59 -07:00
2019-02-08 06:42:53 -07:00
2020-06-11 08:03:24 +02:00
2020-07-20 10:27:11 +01:00
2020-08-10 12:16:51 -07:00
2020-07-08 10:48:35 -07:00
2020-08-05 11:12:34 -07:00
2020-08-06 16:39:14 -07:00
2020-08-12 10:57:59 -07:00
2020-07-08 16:20:01 -06:00
2020-08-12 10:57:56 -07:00
2020-08-14 19:56:56 -07:00
2020-08-12 10:57:59 -07:00
2020-08-12 10:57:59 -07:00
2020-08-03 14:25:40 -07:00
2020-08-11 17:29:45 +02:00
2020-08-12 10:58:01 -07:00
2017-11-02 11:10:55 +01:00
2020-08-12 10:57:59 -07:00
2020-07-30 17:22:57 +09:00
2020-08-03 11:57:03 -07:00
2020-08-05 13:02:45 -07:00
2019-05-24 17:37:52 +02:00
2020-08-14 15:22:43 -07:00
2020-08-07 12:41:36 -07:00
2018-03-16 19:58:27 +01:00
2020-08-06 16:13:13 +02:00
2017-11-02 11:10:55 +01:00
2020-08-07 11:33:28 -07:00
2020-07-24 14:59:04 +02:00
2019-10-17 16:23:25 +02:00
2019-08-07 13:52:43 +01:00
2020-07-08 12:39:05 -07:00
2019-12-16 10:35:33 +01:00
2020-08-12 10:57:59 -07:00
2020-07-13 11:03:45 -07:00
2020-07-25 20:16:34 -07:00
2020-08-12 10:57:57 -07:00
2020-08-16 10:55:12 -07:00
2020-08-12 10:57:59 -07:00
2020-08-12 10:57:57 -07:00
2020-08-06 16:13:13 +02:00
2020-08-14 19:56:56 -07:00
2020-08-12 10:58:02 -07:00
2020-08-06 17:54:04 +02:00
2018-03-08 12:30:37 +01:00
2020-08-13 18:41:00 -07:00
2019-06-02 18:08:36 -07:00
2019-07-04 22:01:59 -04:00
2019-10-04 12:31:46 -07:00
2019-06-05 17:37:17 +02:00
2020-08-14 19:56:57 -07:00
2020-08-14 19:56:57 -07:00
2020-08-12 10:57:59 -07:00
2020-08-07 11:33:28 -07:00
2017-11-02 11:10:55 +01:00
2020-08-12 10:58:02 -07:00
2020-08-07 18:29:15 -07:00
2020-08-06 16:13:13 +02:00
2020-08-06 12:59:31 -07:00
2020-08-12 10:57:59 -07:00
2020-08-06 16:13:13 +02:00
2020-08-11 14:30:36 -07:00
2020-08-11 14:30:36 -07:00
2020-08-07 21:27:37 -07:00
2020-08-14 19:56:57 -07:00
2020-08-12 10:57:56 -07:00
2020-08-12 10:58:02 -07:00
2020-08-14 19:56:56 -07:00
2020-08-14 19:56:56 -07:00
2020-08-14 19:56:57 -07:00
2020-08-07 11:33:26 -07:00
2018-04-05 21:36:27 -07:00
2020-08-07 11:33:21 -07:00
2020-08-12 10:57:56 -07:00
2020-05-19 11:42:16 +01:00
2020-07-20 10:39:54 +02:00
2018-03-24 11:25:35 -05:00
2020-08-06 16:13:13 +02:00
2020-08-05 20:13:21 -07:00
2020-08-15 08:26:55 -07:00
2019-07-18 17:08:06 -07:00
2020-08-12 10:57:56 -07:00
2020-06-16 20:45:08 -07:00
2020-08-07 11:33:29 -07:00
2020-08-14 19:56:56 -07:00
2020-05-15 13:51:28 -07:00
2020-08-12 12:09:36 -07:00
2020-08-07 18:48:15 -07:00
2020-08-07 11:33:26 -07:00
2020-08-05 20:13:21 -07:00
2020-08-12 10:57:57 -07:00
2020-08-05 20:13:21 -07:00
2020-04-28 17:44:33 +02:00
2020-08-12 10:57:59 -07:00
2019-05-14 19:52:48 -07:00
2020-08-06 16:50:59 +02:00
2019-06-15 12:25:49 +02:00
2019-06-05 17:37:17 +02:00
2017-11-02 11:10:55 +01:00
2019-12-05 11:43:31 -08:00
2019-12-05 11:43:31 -08:00
2019-09-16 11:43:38 -05:00
2020-04-18 15:44:56 -05:00
2020-08-14 14:17:51 -07:00
2020-06-14 11:39:31 -07:00
2020-02-21 10:31:18 +01:00
2020-08-06 16:13:13 +02:00
2020-06-11 15:19:17 +02:00
2017-11-02 11:10:55 +01:00
2020-08-07 11:33:24 -07:00
2019-09-24 15:54:11 -07:00
2020-08-07 21:14:30 -07:00
2020-08-07 11:33:25 -07:00
2020-08-07 11:33:25 -07:00
2020-08-07 11:33:25 -07:00
2020-06-30 09:34:23 -04:00
2020-08-10 12:06:44 -07:00
2018-10-09 11:20:55 +02:00
2020-07-15 12:45:06 +03:00
2020-08-12 10:57:56 -07:00
2020-01-15 11:00:39 -06:00
2020-08-14 19:56:56 -07:00
2020-08-14 19:56:56 -07:00
2020-06-30 12:18:08 -06:00
2020-08-06 16:13:13 +02:00
2017-11-02 11:10:55 +01:00
2019-08-28 11:50:43 +02:00
2020-08-07 17:05:01 -04:00
2020-08-12 10:57:59 -07:00
2020-07-07 11:58:59 -05:00
2020-08-05 19:00:23 -04:00
2020-08-06 16:13:13 +02:00
2020-08-05 19:56:03 -04:00
2020-08-12 10:57:57 -07:00
2020-08-07 11:33:24 -07:00
2017-11-02 11:10:55 +01:00
2020-08-12 10:57:59 -07:00
2020-06-01 11:02:28 -04:00
2020-06-05 16:19:28 -07:00
2020-08-06 16:13:13 +02:00
2020-08-09 13:58:04 -07:00
2020-08-12 10:57:59 -07:00
2020-08-12 10:57:59 -07:00
2020-08-12 10:57:59 -07:00