[Bug 279708] comment for sleepq_switch describes the thread lock wrong
Date: Thu, 13 Jun 2024 11:57:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279708
Bug ID: 279708
Summary: comment for sleepq_switch describes the thread lock
wrong
Product: Base System
Version: Unspecified
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: jonny@bugs.freebsd.org.olpp.net
Created attachment 251431
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=251431&action=edit
correct comment of sleepq_switch about thread lock
sleepq_switch releases the thread lock, but the documentation comment says
otherwise.
the shortest diff would be to change with to without in "Returns with thread
lock."
but i would use the same formulation as in mi_switch:
"The thread lock is required on entry and is no longer held on return."
--
You are receiving this mail because:
You are the assignee for the bug.