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)
Tue, May 12, 11:12 PM
Unknown Object (File)
Tue, May 12, 10:19 AM
Unknown Object (File)
Mon, May 4, 3:16 AM
Unknown Object (File)
Mon, May 4, 3:06 AM
Unknown Object (File)
Wed, Apr 29, 6:29 AM
Unknown Object (File)
Wed, Apr 29, 6:26 AM
Unknown Object (File)
Apr 24 2026, 12:43 AM
Unknown Object (File)
Apr 18 2026, 9:44 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)