git: d521c27c345d - stable/13 - exit1(): update comment about thread_single()

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Tue, 23 Aug 2022 00:29:45 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=d521c27c345ddf300621413524a9cc2c29ac2819

commit d521c27c345ddf300621413524a9cc2c29ac2819
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-08-12 20:16:29 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-08-22 13:37:10 +0000

    exit1(): update comment about thread_single()
    
    (cherry picked from commit 30b16a6bcf01c17b52daef76bf2320749e84bd89)
---
 sys/kern/kern_exit.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index c14c2a7a9cde..da60159fa391 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -274,16 +274,15 @@ exit1(struct thread *td, int rval, int signo)
 		 * Kill off the other threads. This requires
 		 * some co-operation from other parts of the kernel
 		 * so it may not be instantaneous.  With this state set
-		 * any thread entering the kernel from userspace will
-		 * thread_exit() in trap().  Any thread attempting to
+		 * any thread attempting to interruptibly
 		 * sleep will return immediately with EINTR or EWOULDBLOCK
 		 * which will hopefully force them to back out to userland
 		 * freeing resources as they go.  Any thread attempting
-		 * to return to userland will thread_exit() from userret().
+		 * to return to userland will thread_exit() from ast().
 		 * thread_exit() will unsuspend us when the last of the
 		 * other threads exits.
 		 * If there is already a thread singler after resumption,
-		 * calling thread_single will fail; in that case, we just
+		 * calling thread_single() will fail; in that case, we just
 		 * re-check all suspension request, the thread should
 		 * either be suspended there or exit.
 		 */