]> asedeno.scripts.mit.edu Git - linux.git/commit
mac80211: disentangle iflist_mtx and chanctx_mtx
authorJohannes Berg <johannes.berg@intel.com>
Wed, 26 Apr 2017 07:58:53 +0000 (10:58 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Apr 2017 21:17:44 +0000 (23:17 +0200)
commit4a199068230bd8074f2e39025a2216390ea5b829
tree88af85b1f1511f285731bb5fa6c863f60fd382fb
parentcf147085fdda044622973a12e4e06f1c753ab677
mac80211: disentangle iflist_mtx and chanctx_mtx

At least on iwlwifi, sometimes lockdep complains that we can
lock
 chanctx_mtx -> mvm.mutex -> iflist_mtx
 (due to iterate_interfaces)
and
 iflist_mtx -> chanctx_mtx

Remove the latter dependency in mac80211 by using the RTNL
that we already hold in one case, and can relatively easily
achieve in the other case.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/main.c
net/mac80211/util.c