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

(cherry picked from commit aeff15b392e68f5f193fff3bb01728b965cacc3a)

Approved by: emaste (mentor)

Details

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