diff options
| author | Peter Zijlstra <peterz@infradead.org> | 2022-10-25 22:38:21 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-08 20:58:33 +0300 |
| commit | 8e4c2530879d7ac1eecc1815b1e34e597c7d4f22 (patch) | |
| tree | fc5eb0e6d52fd0fd5fde009435cbab7dd0614da3 /include/linux | |
| parent | 13ec5cb4c113d9159b5138d45f588f40ba66ca56 (diff) | |
| download | linux-8e4c2530879d7ac1eecc1815b1e34e597c7d4f22.tar.xz | |
x86/mm: Use mm_alloc() in poking_init()
commit 3f4c8211d982099be693be9aa7d6fc4607dff290 upstream.
Instead of duplicating init_mm, allocate a fresh mm. The advantage is
that mm_alloc() has much simpler dependencies. Additionally it makes
more conceptual sense, init_mm has no (and must not have) user state
to duplicate.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20221025201057.816175235@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched/task.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h index d351f1b362ef..a702d4d1a495 100644 --- a/include/linux/sched/task.h +++ b/include/linux/sched/task.h @@ -87,7 +87,6 @@ extern void exit_itimers(struct task_struct *); extern pid_t kernel_clone(struct kernel_clone_args *kargs); struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node); struct task_struct *fork_idle(int); -struct mm_struct *copy_init_mm(void); extern pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); extern long kernel_wait4(pid_t, int __user *, int, struct rusage *); int kernel_wait(pid_t pid, int *stat); |
