From nobody Tue Nov 12 02:01:57 2024 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 4XnV5y06bgz5cxdy; Tue, 12 Nov 2024 02:01:58 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XnV5x53ZPz3xBY; Tue, 12 Nov 2024 02:01:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731376917; 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=LOTPP0/XKK6kmAEPvIubyX5ygQR87ex8FsV9F81qnbg=; b=YtVa4+BXEKgVoX/QDAsI0C4XWmmkVzZ6lBp2AHMdpo7F15DxtIXgMWjocaOBq8MwcR48fh 8FIu54s2706k5Xyd0cnEQxNSmcG7Omq496rlDr/KJbaBipp43ebmL9JbG1dN7p+5DeKhS8 WnR2+cvzoVzmc0igae/Dv4nHVYuBaMdjK3RHm/jX9z1PkEQYp39biOJVmhhXnpPDXYNlpl xPJXaMF8tzEUYEoh3EjIan3WyKu8HyMJ4LGG+bgqQCcpTzwChtShtTDjviPwkgwByTEZq1 1AzD7JhtU8JZA4Bb3Mp0MvP2IqvltLPjuCkAf032hp0Q/SymggsioLT1VTsYTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731376917; 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=LOTPP0/XKK6kmAEPvIubyX5ygQR87ex8FsV9F81qnbg=; b=l3wHUqyzkrKkQSnxGB3713jgL7gWTiJq1UiIpBwxeRGNZkoLPntXBD2NLmPIGEjHCRoX8I J7VfukX1sx3vCbhrBk94BwJBi3J4HPjkQ+FLROegPiFdIiJFupXgLm7On9PM8Gw+vqAuxF 0TzNWLbTjeEmtv+1V8parphI61aRDiD6LMu73TscyrZzIu2Luu9TEVo4FhGWr6qOKEi9bP t3BDPBwG12pMrGJ1acxqcdFcCTujePectT1sdO0TaKmu9WlBRNUOuUBNLPwd1mh0n0wQvF X7mpxtqrIJsGHVlrLIPFL2M+Z1Yq0PPZtANjqdpBi/l6/It6xJc3C6FweRNL5g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731376917; a=rsa-sha256; cv=none; b=a2TcbMwUou6rDjH5j0xM67tfipypLqBmSJtRe5jIeCjjtXgmo3F8tISzuJIhk1Wc89ZGjT fSkBxUKFpilyOOvBV5Mz/O5Nm/ZiA6uDvwshppW6p/yWTmrntBD75njen5E/4fyomx6XR9 WRRVjrJO4T1IvszYT9lmkbjEdTA3otjUQ/zMPTtEwxKkjTr5TLlZ6FhZEUCFkmbNTnhbad zw1iuCOp8mS9ixuvfqTOym27mQ6uYAa+yHEur6GCbbWen7dT/ZpL4oVen6zMfkcy3d2ATP QuDKT2luarLadsAi98QC0hyWoVBOwa0s6JZbU98NAp6vkqCB/elk5l0QYjNNAQ== 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 4XnV5x3vLjzqvY; Tue, 12 Nov 2024 02:01:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AC21vL1023012; Tue, 12 Nov 2024 02:01:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AC21vYk023009; Tue, 12 Nov 2024 02:01:57 GMT (envelope-from git) Date: Tue, 12 Nov 2024 02:01:57 GMT Message-Id: <202411120201.4AC21vYk023009@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 1030ee912837 - main - sleepqueue: Fix the comment for sleepq_switch() 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1030ee9128373e7819e5d4a45475ad8cda24fec9 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=1030ee9128373e7819e5d4a45475ad8cda24fec9 commit 1030ee9128373e7819e5d4a45475ad8cda24fec9 Author: Mark Johnston AuthorDate: 2024-11-12 01:57:24 +0000 Commit: Mark Johnston CommitDate: 2024-11-12 01:57:24 +0000 sleepqueue: Fix the comment for sleepq_switch() The comment from mi_switch() applies here. PR: 279708 Fixes: 686bcb5c14ab ("schedlock 4/4") MFC after: 1 week --- sys/kern/subr_sleepqueue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c index 0af666653352..19dc88d71b73 100644 --- a/sys/kern/subr_sleepqueue.c +++ b/sys/kern/subr_sleepqueue.c @@ -539,7 +539,8 @@ sleepq_catch_signals(const void *wchan, int pri) /* * Switches to another thread if we are still asleep on a sleep queue. - * Returns with thread lock. + * + * The thread lock is required on entry and is no longer held on return. */ static void sleepq_switch(const void *wchan, int pri)