qcacld-3.0: Remove console logging for ol_txrx_peer_get_ref

In ol_txrx_peer_get_ref(), console logging is done after holding
spin lock which leads to spinlock lockup.

Avoid excess logging into console while holding spin lock.

Change-Id: Iae4fa6006358e26796ae2c262aca01bec7eacd21
CRs-Fixed: 2325704
This commit is contained in:
Alok Kumar 2018-10-01 16:17:51 +05:30 • committed by nshrivas
commit 9b13327cfb

View file

@ -65,7 +65,6 @@ int ol_txrx_peer_get_ref(struct ol_txrx_peer_t *peer,
enum peer_debug_id_type dbg_id)
{
int refs_dbg_id;
bool ref_silent = false;
if (!peer) {
ol_txrx_err("peer is null for ID %d", dbg_id);
@ -77,18 +76,10 @@ int ol_txrx_peer_get_ref(struct ol_txrx_peer_t *peer,
return -EINVAL;
}
if (dbg_id == PEER_DEBUG_ID_OL_RX_THREAD)
ref_silent = true;
qdf_atomic_inc(&peer->ref_cnt);
qdf_atomic_inc(&peer->access_list[dbg_id]);
refs_dbg_id = qdf_atomic_read(&peer->access_list[dbg_id]);
if (!ref_silent)
ol_txrx_info_high("[%d][%d] peer %pK ref_cnt -> %d",
dbg_id, refs_dbg_id,
peer, qdf_atomic_read(&peer->ref_cnt));
return refs_dbg_id;
}