fork: allow kernel code to call copy_process
authorMike Christie <michael.christie@oracle.com>
Fri, 10 Mar 2023 22:03:29 +0000 (16:03 -0600)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Sun, 12 Mar 2023 09:54:43 +0000 (10:54 +0100)
commit89c8e98d8cfb0656dbeb648572df5b13e372247d
tree1b604dd82eecdc55c6c9bac2ef567646e5d51a35
parent094717586bf71ac20ae3b240d2654d826634b21e
fork: allow kernel code to call copy_process

The next patch adds helpers like create_io_thread, but for use by the
vhost layer. There are several functions, so they are in their own file
instead of cluttering up fork.c. This patch allows that new file to
call copy_process.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
include/linux/sched/task.h
kernel/fork.c