]> git.baikalelectronics.ru Git - kernel.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)
commit85331acc358ab554a3667aff9b0922e41e96f550
tree88af85b1f1511f285731bb5fa6c863f60fd382fb
parent50e200df24eecb5182947049cdd36a9c04495386
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