'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.
Details
Details
- Reviewers
kib - Commits
- rG21284ecd1e65: PP mutexes: unlock: Reset inherited prio regardless of privileges
rGb94acafdbcc7: PP mutexes: unlock: Reset inherited prio regardless of privileges
rGeded8fea5c3a: PP mutexes: unlock: Reset inherited prio regardless of privileges
rG1df8700aa6cf: PP mutexes: unlock: Reset inherited prio regardless of privileges
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable