Page MenuHomeFreeBSD

net80211: add IEEE80211_IS_LOCKED()
ClosedPublic

Authored by bz on Jan 15 2025, 10:54 PM.
Tags
None
Referenced Files
F156426024: D48475.diff
Wed, May 13, 2:59 PM
Unknown Object (File)
Tue, May 12, 9:32 PM
Unknown Object (File)
Sun, May 3, 12:19 AM
Unknown Object (File)
Sun, Apr 19, 8:25 AM
Unknown Object (File)
Fri, Apr 17, 5:10 AM
Unknown Object (File)
Thu, Apr 16, 10:40 AM
Unknown Object (File)
Wed, Apr 15, 12:34 AM
Unknown Object (File)
Apr 9 2026, 9:43 PM

Details

Summary

When trying to sort out a teardown locking problem (downcall in the
driver can sleep) I found that the fan-out tree was getting too big
to fix net80211 locking per-se for this while working on entirely
different problems.
Add IEEE80211_IS_LOCKED() so the driver can check and un-/re-lock as
necessary (as we do in other cases already) to avoid panics on
debug kernels left and right.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable