kernel: Allow a kernel thread's name to be set in copy_process
authorMike Christie <michael.christie@oracle.com>
Fri, 10 Mar 2023 22:03:23 +0000 (16:03 -0600)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Sun, 12 Mar 2023 09:52:46 +0000 (10:52 +0100)
commitcf587db2ee0261c74d04f61f39783db88a0b65e4
tree5fecb82e0ea27438d473a165f274b9355ce0cd42
parente0a98139c162af9601ffa8d6db88dbe745f64b3c
kernel: Allow a kernel thread's name to be set in copy_process

This patch allows kernel users to pass in the thread name so it can be
set during creation instead of having to use set_task_comm after the
thread is created.

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
init/main.c
kernel/fork.c
kernel/kthread.c