diff mbox series

ath: move spin_lock_bh to spin_lock in tasklet

Message ID 20190122163033.51095-1-qq282012236@gmail.com
State Changes Requested
Delegated to: David Miller
Headers show
Series ath: move spin_lock_bh to spin_lock in tasklet | expand

Commit Message

Zhiwei Jiang Jan. 22, 2019, 4:30 p.m. UTC
as you are already in a tasklet, it is unnecessary to call
spin_lock_bh, because softirq already disable BH.

Signed-off-by: Zhiwei Jiang <qq282012236@gmail.com>
---
 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Kalle Valo Jan. 22, 2019, 4:42 p.m. UTC | #1
Zhiwei Jiang <qq282012236@gmail.com> writes:

> as you are already in a tasklet, it is unnecessary to call
> spin_lock_bh, because softirq already disable BH.
>
> Signed-off-by: Zhiwei Jiang <qq282012236@gmail.com>

If you post a new version you should mark it as "v2":

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches#patch_version_missing

No need to resend now but please keep in mind in the future.
Kalle Valo Jan. 23, 2019, 4:25 a.m. UTC | #2
姜智伟 <qq282012236@gmail.com> writes:

> Will do, thanks! 

Also don't send HTML mail :) Maillists drop those automatically.
Kalle Valo Feb. 7, 2019, 3:01 p.m. UTC | #3
Zhiwei Jiang <qq282012236@gmail.com> wrote:

> as you are already in a tasklet, it is unnecessary to call
> spin_lock_bh, because softirq already disable BH.
> 
> Signed-off-by: Zhiwei Jiang <qq282012236@gmail.com>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath-next branch of ath.git, thanks.

b789f333d7ac ath: move spin_lock_bh to spin_lock in tasklet
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
index 799010ed04e0..4e8e80ac8341 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
@@ -574,12 +574,12 @@  void ath9k_tx_failed_tasklet(unsigned long data)
 {
 	struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *)data;
 
-	spin_lock_bh(&priv->tx.tx_lock);
+	spin_lock(&priv->tx.tx_lock);
 	if (priv->tx.flags & ATH9K_HTC_OP_TX_DRAIN) {
-		spin_unlock_bh(&priv->tx.tx_lock);
+		spin_unlock(&priv->tx.tx_lock);
 		return;
 	}
-	spin_unlock_bh(&priv->tx.tx_lock);
+	spin_unlock(&priv->tx.tx_lock);
 
 	ath9k_htc_tx_drainq(priv, &priv->tx.tx_failed);
 }