HomeFreeBSD

sched: Simplify sched_lend_user_prio_cond()

Description

sched: Simplify sched_lend_user_prio_cond()

If 'td_lend_user_pri' has the expected value, there is no need to check
the fields that sched_lend_user_prio() modifies, they either are already
good or soon will be ('td->td_lend_user_pri' has just been changed by
a concurrent update).

Reviewed by: kib
Approved by: emaste (mentor)
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44050

Details

Provenance
olceAuthored on Feb 9 2024, 6:03 PM
Reviewer
kib
Differential Revision
D44050: sched: Simplify sched_lend_user_prio_cond()
Parents
rG39e4665c9694: PP mutexes: lock: Reduce 'umtx_lock' holding before taking the user lock
Branches
Unknown
Tags
Unknown