Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jun 2024 11:57:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 279708] comment for sleepq_switch describes  the thread lock wrong
Message-ID:  <bug-279708-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279708

            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=3D251431&action=
=3Dedit
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."

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279708-227>