HomeFreeBSD

Fix the !TD_IS_IDLETHREAD(curthread) locking assertions.

Description

Fix the !TD_IS_IDLETHREAD(curthread) locking assertions.

Most of the lock slowpaths assert that the calling thread isn't an idle
thread. However, this may not be true if the system has panicked, and in
some cases the assertion appears before a SCHEDULER_STOPPED() check.

MFC after: 3 days
Sponsored by: Dell EMC Isilon

Details

Provenance
markjAuthored on
Parents
rS320123: Fix a potential sleep while holding a mutex in the sa(4) driver.
Branches
Unknown
Tags
Unknown