From e69ba32f88bbd7274e570d71b9936ecf0f499785 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Wed, 3 Aug 2016 07:10:09 +0000 Subject: [PATCH] Remove mention of the Giant from the fork_return() description. Making emphasis on this lock in the core function comment is confusing for the modern kernel. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/kern/kern_fork.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 4c21c0ba20d..908f23fd570 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1055,9 +1055,9 @@ fork_exit(void (*callout)(void *, struct trapframe *), void *arg, /* * Simplified back end of syscall(), used when returning from fork() - * directly into user mode. Giant is not held on entry, and must not - * be held on return. This function is passed in to fork_exit() as the - * first parameter and is called when returning to a new userland process. + * directly into user mode. This function is passed in to fork_exit() + * as the first parameter and is called when returning to a new + * userland process. */ void fork_return(struct thread *td, struct trapframe *frame)