wifi: mac80211: hold wiphy lock in netdev/link debugfs
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 Aug 2023 11:59:30 +0000 (13:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Sep 2023 09:27:18 +0000 (11:27 +0200)
commit0ab6cba0696da4c6dff6e047ef8aa6c9c0fadf13
tree2581fc9bfb1cb74f84c0f96d3ee37ff161b7d0c4
parent629ebb8532e96c3921fe8828c650ce03b697cfdd
wifi: mac80211: hold wiphy lock in netdev/link debugfs

It's no longer really needed to ensure that the debugfs
file isn't going away, debugfs handles that. So there's
no point in holding dev_base_lock or RTNL here, but we
should instead hold the wiphy lock since drivers will
be allowed to depend on that. Do that, which requires
splitting the sdata and link macros a bit.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/debugfs_netdev.c