mac80211: use separate spinlock for sta flags
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 18 Jun 2008 12:58:09 +0000 (14:58 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 26 Jun 2008 20:49:17 +0000 (16:49 -0400)
commit5a9f7b047e81a73a1ce3e42ef87c28a61fd4df24
treea9d727db68885155b36afb57e5f28df8cd82e029
parent135a2110c55c71d7ccaf5ac66968b993347fe8e2
mac80211: use separate spinlock for sta flags

David Ellingsworth posted a bug that was only noticable on UP/NO-PREEMPT
and Michael correctly analysed it to be a spin_lock_bh() section within
a spin_lock_irqsave() section. This adds a separate spinlock for the
sta_info flags to fix that issue and avoid having to take much care
about where the sta flag manipulation functions are called.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reported-By: David Ellingsworth <david@identd.dyndns.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/sta_info.c
net/mac80211/sta_info.h