]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedad7ed6cacb4527c2115d4f0eb9944f933c763e
treea9d727db68885155b36afb57e5f28df8cd82e029
parentfa106d16aa3589bf847589335d3da57247fd73a4
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