netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net:rtlwifi:move spin_lock_bh to spin_lock in tasklet
@ 2019-03-19 14:31 Jeff Xie
  2019-03-20  2:31 ` Pkshih
  2019-04-04 10:27 ` [PATCH] rtlwifi: move " Kalle Valo
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Xie @ 2019-03-19 14:31 UTC (permalink / raw)
  To: pkshih, kvalo; +Cc: davem, linux-wireless, netdev, linux-kernel, chongguiguzi

It is unnecessary to call spin_lock_bh in a tasklet.

Signed-off-by: Jeff Xie <chongguiguzi@gmail.com>

---
 drivers/net/wireless/realtek/rtlwifi/pci.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtlwifi/pci.c b/drivers/net/wireless/realtek/rtlwifi/pci.c
index 48ca521..4055e0a 100644
--- a/drivers/net/wireless/realtek/rtlwifi/pci.c
+++ b/drivers/net/wireless/realtek/rtlwifi/pci.c
@@ -499,16 +499,16 @@ static void _rtl_pci_tx_chk_waitq(struct ieee80211_hw *hw)
 
 			memset(&tcb_desc, 0, sizeof(struct rtl_tcb_desc));
 
-			spin_lock_bh(&rtlpriv->locks.waitq_lock);
+			spin_lock(&rtlpriv->locks.waitq_lock);
 			if (!skb_queue_empty(&mac->skb_waitq[tid]) &&
 			    (ring->entries - skb_queue_len(&ring->queue) >
 			     rtlhal->max_earlymode_num)) {
 				skb = skb_dequeue(&mac->skb_waitq[tid]);
 			} else {
-				spin_unlock_bh(&rtlpriv->locks.waitq_lock);
+				spin_unlock(&rtlpriv->locks.waitq_lock);
 				break;
 			}
-			spin_unlock_bh(&rtlpriv->locks.waitq_lock);
+			spin_unlock(&rtlpriv->locks.waitq_lock);
 
 			/* Some macaddr can't do early mode. like
 			 * multicast/broadcast/no_qos data
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-04 10:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-19 14:31 [PATCH] net:rtlwifi:move spin_lock_bh to spin_lock in tasklet Jeff Xie
2019-03-20  2:31 ` Pkshih
2019-03-20  2:41   ` 谢欢
2019-04-04 10:27 ` [PATCH] rtlwifi: move " Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).