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, Oct 7, 3:17 AM
Unknown Object (File)
Sat, Oct 4, 12:23 PM
Unknown Object (File)
Wed, Sep 24, 10:37 PM
Unknown Object (File)
Wed, Sep 17, 1:48 PM
Unknown Object (File)
Wed, Sep 17, 1:47 PM
Unknown Object (File)
Wed, Sep 17, 1:47 PM
Unknown Object (File)
Sep 8 2025, 12:46 AM
Unknown Object (File)
Sep 2 2025, 3:30 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)