From nobody Tue Aug 23 00:29:45 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MBVVK6WTzz4b48s; Tue, 23 Aug 2022 00:29:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MBVVK63tRz43s8; Tue, 23 Aug 2022 00:29:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661214585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JFbl/wMKdTJBID8NfXH7FO/ncIHjNc8ZgChxiDG/X54=; b=uopC9DZJMzpPzQLmEG1yDZw3S5NhqqG2r4k0OaAvfr+Lte/GWTnQmr8ABd76m5gx7w4Ist GnhlB3DCxnnO+LZJFGliKq30zmNhqqSLLsPIEmdmHUDbeII/P5Z2bZwRR7UEn+74P1IVNf QPg1F5ycqleBbi3HGjckkHzgJ5b67KdOWlC4vy/9fEOhsE34YNfu6OcU5pK9cKAO+/AC3T nSjmMU6GyU3gWo3/yBR9KK2ba5ozFMV/NXePU/zWMa5Gs31XSFAst6FR5tRItvYQYCpJ7K BpK+3vkY+bfjt/D3dRkWrquiZy7T03EDOmvxkqqpKMsQbwJ4cyhOZSSDLmG8wg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MBVVK59XRz18Xm; Tue, 23 Aug 2022 00:29:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27N0TjRK032552; Tue, 23 Aug 2022 00:29:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27N0Tj2x032551; Tue, 23 Aug 2022 00:29:45 GMT (envelope-from git) Date: Tue, 23 Aug 2022 00:29:45 GMT Message-Id: <202208230029.27N0Tj2x032551@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: d521c27c345d - stable/13 - exit1(): update comment about thread_single() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d521c27c345ddf300621413524a9cc2c29ac2819 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661214585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JFbl/wMKdTJBID8NfXH7FO/ncIHjNc8ZgChxiDG/X54=; b=oDKtMx14mri653AOaECZF3KVDH0HE7OZfdFpmGUmLc1L7EBxQAIqT/TmLlWTbVgAUHjjki DtWZsDav1bQNGJsFhLziTYZs7xujjy97kfkyZWh09YM268JeUUeBPk8Ev69o14nSdIEtpz x9TrqaK4wJKrsN750csKrNDhADv8YQ/Ox+bX5VFOJBrWWW5OCGyBPl/HVn+IIvJOzNM9kO SAtsYdLmYlIC/0dVbYUeHSdKxfJM0rR8K8OyRPRFPISr66YCNQtkjejGYVMxCztNKl+N71 jbDs8oJyPv4fqLzpodL90q8IyjKAclQWcEs08dxdh6tDjfv9/l0o4whUqWeI9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661214585; a=rsa-sha256; cv=none; b=waxkxYgY+jD2t7q+vblZlJ+MOqb/DQ+PTkWoBZCKms516MsvQ3jpsbhaoCWDiGp8vSBFDz HJ9hTrAGYu7cdYuCp7usUHVyWZGHZm+P5fEUVgSQxKXb7mh4vNqpFOEsAyRqXnVIIt04Ne +ru4zdMfJJLHBPipy3wka40mVPFb9eZYgoUPap0viW818ZJe0BITGwYCINJbw+QQxZYQ9S dDopeVv2w+3WxTZpHeWA492CDZbUTGA0VPGDItlBQ8rSGPt4DRifwt8ej2xXCg9cWfwDEd tcbekij95OpOMDyUX4H+6I4PQvfoHwzotIUlWtKQnlHH2heEchJPoHw/0PimSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d521c27c345ddf300621413524a9cc2c29ac2819 commit d521c27c345ddf300621413524a9cc2c29ac2819 Author: Konstantin Belousov AuthorDate: 2022-08-12 20:16:29 +0000 Commit: Konstantin Belousov 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. */