[MAC80211]: improve locking of sta_info related structures
authorMichael Wu <flamingice@sourmilk.net>
Fri, 27 Jul 2007 13:43:23 +0000 (15:43 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:47:37 +0000 (16:47 -0700)
commitbe8755e1804d6f60e6a96a46ac6bc46ce6dfca53
treea3038a924114f49aa2372ab7c9417d4e072c4b20
parentc2d1560ad8c2f6e0dd0d34102d022f3709325c26
[MAC80211]: improve locking of sta_info related structures

The sta_info code has some awkward locking which prevents some driver
callbacks from being allowed to sleep. This patch makes the locking more
focused so code that calls driver callbacks are allowed to sleep. It also
converts sta_lock to a rwlock.

Signed-off-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: Jiri Benc <jbenc@suse.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/ieee80211.c
net/mac80211/ieee80211_i.h
net/mac80211/ieee80211_iface.c
net/mac80211/ieee80211_sta.c
net/mac80211/sta_info.c
net/mac80211/sta_info.h
net/mac80211/tx.c