HomeFreeBSD

lockmgr: upgrade panic return checks

Description

lockmgr: upgrade panic return checks

We short-circuit lockmgr functions in the face of a kernel panic. Other
lock implementations do this with a SCHEDULER_STOPPED() check, which
covers the additional case where the debugger is active but the system
has not panicked. Update this code to match that behaviour.

Reviewed by: mjg, kib, markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D38655

(cherry picked from commit 9a7f7c26c5b280924072e2d9947ad39ef4cc022c)

Details

Provenance
mhorneAuthored on Feb 22 2023, 3:11 PM
Reviewer
mjg
Differential Revision
D38655: lockmgr: upgrade panic return checks
Parents
rG3ca605d19b2e: powerpc: remove nexus_get_cpus()
Branches
Unknown
Tags
Unknown