Skip to content
Permalink
Browse files
ath10k: detect conf_mutex held ath10k_drain_tx() calls
ath10k_drain_tx() must not be called with conf_mutex held as workers can
use that also. Add check to detect conf_mutex held calls.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
  • Loading branch information
shuahkh authored and intel-lab-lkp committed Feb 10, 2021
1 parent abbd7d4 commit 5a96c0c9dfec2bd59e680b7ec8ade9378b654c4c
Showing 1 changed file with 1 addition and 0 deletions.
@@ -4727,6 +4727,7 @@ static void ath10k_mac_op_wake_tx_queue(struct ieee80211_hw *hw,
/* Must not be called with conf_mutex held as workers can use that also. */
void ath10k_drain_tx(struct ath10k *ar)
{
WARN_ON(lockdep_is_held(&ar->conf_mutex));
/* make sure rcu-protected mac80211 tx path itself is drained */
synchronize_net();

0 comments on commit 5a96c0c

Please sign in to comment.