]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: write queue_sync_state only for sync
authorAvraham Stern <avraham.stern@intel.com>
Sat, 7 Nov 2020 08:50:09 +0000 (10:50 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 10 Nov 2020 18:45:34 +0000 (20:45 +0200)
commit084e0531121a05a8c6dd4f29c16e6190d4c1fbf1
tree8330e18cdf3ba355142fc351503c99501ccec37a
parentbe091638151ea3a5e30de897ba5ca8247b3eb244
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>
Fixes: 9174dc7f1a59 ("iwlwifi: mvm: add a loose synchronization of the NSSN across Rx queues")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20201107104557.51a3148f2c14.I0772171dbaec87433a11513e9586d98b5d920b5f@changeid
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c