Page MenuHomeFreeBSD

PP mutexes: unlock: Reset inherited prio regardless of privileges
ClosedPublic

Authored by olce on Feb 20 2024, 2:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 10, 2:56 PM
Unknown Object (File)
Dec 24 2024, 2:58 AM
Unknown Object (File)
Nov 9 2024, 12:29 AM
Unknown Object (File)
Oct 12 2024, 1:34 AM
Unknown Object (File)
Sep 6 2024, 12:34 AM
Unknown Object (File)
Jul 18 2024, 9:54 PM
Unknown Object (File)
Jul 4 2024, 7:30 AM
Unknown Object (File)
Jun 21 2024, 8:34 PM
Subscribers

Details

Summary

'uq_inherited_pri' contains the current priority inherited from Priority
Protection mutexes. If -1 is passed through 'm_ceilings[1]', meaning
that there are no such mutexes held anymore, this must be reflected into
it by setting it to PRI_MAX, regardless of whether the thread has
privilege to set realtime priorities (PRI_MAX is also obviously not
a realtime priority level). By contrast, it shall not be updated and
the computed 'new_inherited_pri' shall stay unused if the thread doesn't
have the ability to set a realtime priority, possibly keeping an older
such priority acquired previously.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 56115
Build 53003: arc lint + arc unit

Event Timeline

olce requested review of this revision.Feb 20 2024, 2:19 PM
This revision is now accepted and ready to land.Feb 22 2024, 6:02 AM
olce retitled this revision from do_unlock_pp(): Reset umtx_q's inherited prio regardless of privileges to PP mutexes: unlock: Reset inherited prio regardless of privileges.Feb 23 2024, 5:37 PM
olce edited the summary of this revision. (Show Details)