OSDN Git Service

iwlwifi: mvm: synchronize TID queue removal
authorJohannes Berg <johannes.berg@intel.com>
Wed, 4 Jul 2018 21:12:33 +0000 (23:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2019 07:51:08 +0000 (08:51 +0100)
commit26632a077366e3b929076dc1105f15e000379691
treefc605219c6f8a5a7f95e0332da30e67b096f1097
parentcdec9eec4e356fef3805c854ceb90e72887d63e1
iwlwifi: mvm: synchronize TID queue removal

[ Upstream commit 06bc6f6ed4ae0246a5e52094d1be90906a1361c7 ]

When we mark a TID as no longer having a queue, there's no
guarantee the TX path isn't using this txq_id right now,
having accessed it just before we reset the value. To fix
this, add synchronize_net() when we change the TIDs from
having a queue to not having one, so that we can then be
sure that the TX path is no longer accessing that queue.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c