Page MenuHomeFreeBSD

net80211: add IEEE80211_IS_LOCKED()
ClosedPublic

Authored by bz on Jan 15 2025, 10:54 PM.
Tags
None
Referenced Files
F169947655: D48475.diff
Thu, Sep 3, 1:44 AM
F169830193: D48475.id.diff
Wed, Sep 2, 5:03 PM
Unknown Object (File)
Tue, Sep 1, 4:36 AM
Unknown Object (File)
Tue, Sep 1, 1:46 AM
Unknown Object (File)
Mon, Aug 31, 9:11 AM
Unknown Object (File)
Sat, Aug 29, 9:59 PM
Unknown Object (File)
Sat, Aug 29, 3:23 PM
Unknown Object (File)
Sat, Aug 29, 9:12 AM

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