wifi: mac80211: reduce iflist_mtx
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 Aug 2023 12:00:06 +0000 (14:00 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Sep 2023 09:27:22 +0000 (11:27 +0200)
commitbe0df01dae0f21303a7a523dbba35159cf6dfe77
tree65c5566ec477eaa6f710d40d08f8ef9e3dfe3349
parent0cd8080e46b834fa72026112488ab61d4b82f03a
wifi: mac80211: reduce iflist_mtx

We now hold the wiphy mutex everywhere that we use or
needed the iflist_mtx, so we don't need this mutex any
more in mac80211. However, drivers may also iterate,
and in some cases (e.g. mt76) do so from high-priority
contexts. Thus, keep the mutex around but remove its
usage in mac80211 apart from those driver-visible parts
that are still needed.

Most of this change was done automatically with spatch,
with the parts that are still needed as described above
reverted manually.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/ibss.c
net/mac80211/iface.c
net/mac80211/mlme.c
net/mac80211/offchannel.c
net/mac80211/scan.c
net/mac80211/util.c