HomeFreeBSD

sched_ule(4): Fix hang with steal_thresh < 2.

Description

sched_ule(4): Fix hang with steal_thresh < 2.

e745d729be60 caused infinite loop with interrupts disabled in load
stealing code if steal_thresh set below 2. Such configuration should
not generally be used, but appeared some people are using it to
workaround some problems.

To fix the problem explicitly pass to sched_highest() minimum number
of transferrable threads, supported by the caller, instead of guessing.

MFC after: 25 days

(cherry picked from commit 08063e9f98a33980a09e3bd465926719b3437122)

Details

Provenance
mavAuthored on Sep 26 2021, 4:03 PM
Parents
rGb5919ea4e6bb: x86: Add NUMA nodes into CPU topology.
Branches
Unknown
Tags
Unknown