wifi: ath11k: adjust unlock sequence in ath11k_update_stats_event()
authorBaochen Qiang <quic_bqiang@quicinc.com>
Thu, 20 Feb 2025 08:24:46 +0000 (16:24 +0800)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Sat, 7 Jun 2025 14:36:03 +0000 (07:36 -0700)
commit81f64165c9dc2d9b070d8240dd369974ebe188d3
tree33dd4635dd92514df5afbf6ffb9d2556741b5a2a
parent72610ed7d79da17ee09102534d6c696a4ea8a08e
wifi: ath11k: adjust unlock sequence in ath11k_update_stats_event()

Currently RCU lock and ar->data_lock are acquired in a sequence of

rcu_read_lock()
spin_lock_bh(&ar->data_lock)

but released in a sequence of

rcu_read_unlock()
spin_unlock_bh(&ar->data_lock)

Although there are no apparent issues with this, reorder them to
achieve symmetry.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37

Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
Acked-by: Kalle Valo <kvalo@kernel.org>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/20250220082448.31039-6-quic_bqiang@quicinc.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath11k/wmi.c