git: b9f9be5d92a3 - stable/14 - sleepqueue: Fix the comment for sleepq_switch()

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Tue, 19 Nov 2024 14:31:21 UTC
The branch stable/14 has been updated by markj:

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

commit b9f9be5d92a345a52e1dedffb5fdd2e7b6bbc2e2
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-11-12 01:57:24 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-11-19 14:15:07 +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
    
    (cherry picked from commit 1030ee9128373e7819e5d4a45475ad8cda24fec9)
---
 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 bbbf753e3df0..ef921df3b64e 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)