]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix lockdep warning
authorJohannes Berg <johannes.berg@intel.com>
Wed, 12 Jan 2011 12:40:33 +0000 (13:40 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 13 Jan 2011 20:46:45 +0000 (15:46 -0500)
commit93a16777c7a8e6b1c7c747cca790f9a3b31c505f
tree095ffe7e63cc61951095b5642a38136557502a21
parent29a2bb48d77d1a94d67e09c99af066d5b4ac6a42
mac80211: fix lockdep warning

Since the introduction of the fixes for the
reorder timer, mac80211 will cause lockdep
warnings because lockdep confuses
local->skb_queue and local->rx_skb_queue
and treats their lock as the same.

However, their locks are different, and are
valid in different contexts (the former is
used in IRQ context, the latter in BH only)
and the only thing to be done is mark the
former as a different lock class so that
lockdep can tell the difference.

Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Reported-by: Sujith <m.sujith@gmail.com>
Reported-by: Miles Lane <miles.lane@gmail.com>
Tested-by: Sujith <m.sujith@gmail.com>
Tested-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c