]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: write queue_sync_state only for sync
authorJohannes Berg <johannes.berg@intel.com>
Wed, 31 Mar 2021 09:14:41 +0000 (12:14 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 14 Apr 2021 09:07:16 +0000 (12:07 +0300)
commitd29c53ed36e43c349e413935eb3f9a256c1b4336
tree32f00a4700824cb3731d276083e366977e8c62a0
parent79559c1435220692dd03620fd72bdb24109a9d22
iwlwifi: mvm: write queue_sync_state only for sync

We use mvm->queue_sync_state to wait for synchronous queue sync
messages, but if an async one happens inbetween we shouldn't
clear mvm->queue_sync_state after sending the async one, that
can run concurrently (at least from the CPU POV) with another
synchronous queue sync.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210331121101.d11c9bcdb4aa.I0772171dbaec87433a11513e9586d98b5d920b5f@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c