diff options
author | Liad Kaufman <liad.kaufman@intel.com> | 2016-03-23 10:31:08 -0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2016-03-30 09:24:51 -0400 |
commit | d2515a99b2da2bf08d5a1decb7b365e25adbccea (patch) | |
tree | eb0f0798c087de30bba7bf5a38ae83e9be579954 | |
parent | a6017b9030f280ced61b825757b26f042e0785da (diff) |
iwlwifi: mvm: fix inconsistent lock in dqa mode
When working in DQA mode, there is a lockdep log warning
about an inconsistent state of the mvmsta->lock and the
mvm->queue_info_lock. Fix this. This mode is not activated
for now.
Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c index e157bd5a2204..12614b7b7fe7 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c | |||
@@ -296,7 +296,7 @@ static int iwl_mvm_sta_alloc_queue(struct iwl_mvm *mvm, | |||
296 | 296 | ||
297 | lockdep_assert_held(&mvm->mutex); | 297 | lockdep_assert_held(&mvm->mutex); |
298 | 298 | ||
299 | spin_lock(&mvm->queue_info_lock); | 299 | spin_lock_bh(&mvm->queue_info_lock); |
300 | 300 | ||
301 | /* | 301 | /* |
302 | * Non-QoS, QoS NDP and MGMT frames should go to a MGMT queue, if one | 302 | * Non-QoS, QoS NDP and MGMT frames should go to a MGMT queue, if one |
@@ -324,7 +324,7 @@ static int iwl_mvm_sta_alloc_queue(struct iwl_mvm *mvm, | |||
324 | if (queue >= 0) | 324 | if (queue >= 0) |
325 | mvm->queue_info[queue].setup_reserved = false; | 325 | mvm->queue_info[queue].setup_reserved = false; |
326 | 326 | ||
327 | spin_unlock(&mvm->queue_info_lock); | 327 | spin_unlock_bh(&mvm->queue_info_lock); |
328 | 328 | ||
329 | /* TODO: support shared queues for same RA */ | 329 | /* TODO: support shared queues for same RA */ |
330 | if (queue < 0) | 330 | if (queue < 0) |
@@ -402,12 +402,12 @@ static void iwl_mvm_tx_deferred_stream(struct iwl_mvm *mvm, | |||
402 | 402 | ||
403 | __skb_queue_head_init(&deferred_tx); | 403 | __skb_queue_head_init(&deferred_tx); |
404 | 404 | ||
405 | /* Disable bottom-halves when entering TX path */ | ||
406 | local_bh_disable(); | ||
405 | spin_lock(&mvmsta->lock); | 407 | spin_lock(&mvmsta->lock); |
406 | skb_queue_splice_init(&tid_data->deferred_tx_frames, &deferred_tx); | 408 | skb_queue_splice_init(&tid_data->deferred_tx_frames, &deferred_tx); |
407 | spin_unlock(&mvmsta->lock); | 409 | spin_unlock(&mvmsta->lock); |
408 | 410 | ||
409 | /* Disable bottom-halves when entering TX path */ | ||
410 | local_bh_disable(); | ||
411 | while ((skb = __skb_dequeue(&deferred_tx))) | 411 | while ((skb = __skb_dequeue(&deferred_tx))) |
412 | if (no_queue || iwl_mvm_tx_skb(mvm, skb, sta)) | 412 | if (no_queue || iwl_mvm_tx_skb(mvm, skb, sta)) |
413 | ieee80211_free_txskb(mvm->hw, skb); | 413 | ieee80211_free_txskb(mvm->hw, skb); |