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

Details

Provenance
mhorneAuthored on Feb 22 2023, 3:11 PM
Reviewer
mjg
Differential Revision
D38655: lockmgr: upgrade panic return checks
Parents
rG624de4eca545: tcp: remove unused function prototype
Branches
Unknown
Tags
Unknown