HomeFreeBSD

Block the thread lock in sched_throw() and use cpu_switch() to unblock

Description

Block the thread lock in sched_throw() and use cpu_switch() to unblock
it. The introduction of lockless switch in r355784 created a race to
re-use the exiting thread that was only possible to hit on a hypervisor.

Reported/Tested by: rlibby
Discussed with: rlibby, jhb

Details

Provenance
jeffAuthored on
Parents
rS357013: Since now drivers that support pfil run their interrupts in the network
Branches
Unknown
Tags
Unknown