qcacmn: lock on queue

Adding lock for dp_txrx_ppdu_stats_handler given
that insertion and deletion happen in different cores.

Change-Id: Ic0102d615f02cbfed70acc1114a314426466638e
This commit is contained in:
Ruben Columbus
2021-03-09 18:14:34 -08:00
committed by snandini
parent 45e98f35da
commit 2216aa520b
3 changed files with 12 additions and 0 deletions

View File

@@ -4681,6 +4681,7 @@ static void dp_pdev_deinit(struct cdp_pdev *txrx_pdev, int force)
qdf_spinlock_destroy(&pdev->tx_mutex);
qdf_spinlock_destroy(&pdev->vdev_list_lock);
qdf_spinlock_destroy(&pdev->ppdu_stats_lock);
if (pdev->invalid_peer)
qdf_mem_free(pdev->invalid_peer);
@@ -14336,6 +14337,7 @@ static QDF_STATUS dp_pdev_init(struct cdp_soc_t *txrx_soc,
TAILQ_INIT(&pdev->vdev_list);
qdf_spinlock_create(&pdev->vdev_list_lock);
qdf_spinlock_create(&pdev->ppdu_stats_lock);
pdev->vdev_count = 0;
qdf_spinlock_create(&pdev->tx_mutex);
@@ -14455,6 +14457,7 @@ fail4:
qdf_spinlock_destroy(&pdev->neighbour_peer_mutex);
qdf_spinlock_destroy(&pdev->tx_mutex);
qdf_spinlock_destroy(&pdev->vdev_list_lock);
qdf_spinlock_destroy(&pdev->ppdu_stats_lock);
qdf_mem_free(pdev->invalid_peer);
fail3:
dp_pdev_srng_deinit(pdev);