This prevents recursive panics, and is ubiquitous in other lock
implementations.
Most mutex paths contain this check, but it is missing for the '_flags'
lock/unlock variants.
Differential D53582
mutex: add missing checks for SCHEDULER_STOPPED() Authored by mhorne on Nov 4 2025, 3:17 PM. Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions I checked sx and rw locks and I only see the check in the slowpath. If something does this in the fast path it should be patched to stop doing it. What recursive panics are you taking about exactly? Note most of these have an inlined variant which does not do the check and which is used by default. |