diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-11-28 09:55:32 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 22:55:28 (GMT) |
commit | e38bad4766a110b61fa6038f10be16ced8c6cc38 (patch) | |
tree | 8a1b3920dd5383c4a8312597c6d4570b22eae148 /include | |
parent | 76ee65bfaa1435320a72989a6413467ce446ae23 (diff) | |
download | linux-fsl-qoriq-e38bad4766a110b61fa6038f10be16ced8c6cc38.tar.xz |
mac80211: make ieee80211_iterate_active_interfaces not need rtnl
Interface iteration in mac80211 can be done without holding any
locks because I converted it to RCU. Initially, I thought this
wouldn't be needed for ieee80211_iterate_active_interfaces but
it's turning out that multi-BSS AP support can be much simpler
in a driver if ieee80211_iterate_active_interfaces can be called
without holding locks. This converts it to use RCU, it adds a
requirement that the callback it invokes cannot sleep.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/mac80211.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 1470e1b..4cc5b1c 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -1411,10 +1411,9 @@ void ieee80211_scan_completed(struct ieee80211_hw *hw); * * This function iterates over the interfaces associated with a given * hardware that are currently active and calls the callback for them. - * Must be called under RTNL. * * @hw: the hardware struct of which the interfaces should be iterated over - * @iterator: the iterator function to call + * @iterator: the iterator function to call, cannot sleep * @data: first argument of the iterator function */ void ieee80211_iterate_active_interfaces(struct ieee80211_hw *hw, |