Commit 5f8a3561 authored by Johannes Berg's avatar Johannes Berg Committed by Luca Coelho
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210331121101.d11c9bcdb4aa.I0772171dbaec87433a11513e9586d98b5d920b5f@changeid


Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 20578872
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -5177,10 +5177,11 @@ void iwl_mvm_sync_rx_queues_internal(struct iwl_mvm *mvm,
	}

out:
	if (notif->sync) {
		mvm->queue_sync_state = 0;
	if (notif->sync)
		mvm->queue_sync_cookie++;
	}
}

static void iwl_mvm_sync_rx_queues(struct ieee80211_hw *hw)
{