]> nv-tegra.nvidia Code Review - linux-2.6.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)
commit681c4d07dd5b2ce2ad9f6dbbf7841e479fbc7754
tree095ffe7e63cc61951095b5642a38136557502a21
parent8d661f1e462d50bd83de87ee628aaf820ce3c66c
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