]> err.no Git - linux-2.6/commit
mac80211: make ieee80211_iterate_active_interfaces not need rtnl
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 28 Nov 2007 09:55:32 +0000 (10:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:55:28 +0000 (14:55 -0800)
commite38bad4766a110b61fa6038f10be16ced8c6cc38
tree8a1b3920dd5383c4a8312597c6d4570b22eae148
parent76ee65bfaa1435320a72989a6413467ce446ae23
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>
include/net/mac80211.h
net/mac80211/util.c