iwlwifi: mvm: replace RS mutex with a spin_lock
authorGregory Greenman <gregory.greenman@intel.com>
Sun, 30 Jun 2019 06:42:57 +0000 (09:42 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 Jul 2019 16:34:24 +0000 (18:34 +0200)
commitf5d88fa334e6c8e2d840512ffbb30e3cb58d065b
treee6c951521263954b5003786cf9b1786a0519779e
parentcd4d6b0bcd51580efda9ae54ab7b2d630b4147dc
iwlwifi: mvm: replace RS mutex with a spin_lock

The solution with the worker still had a bug, as in order
to get sta, rcu_read_lock should be used and thus no mutex
can be used inside iwl_mvm_rs_rate_init.

Also, spin_lock is a simpler solution, no need to spawn a
dedicated worker.

Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
drivers/net/wireless/intel/iwlwifi/mvm/rs.h
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.h