mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-30 12:04:07 +00:00
close race between ath_tx_start and ath_tx_processq
Reviewed by: apatti MFC after: 1 week
This commit is contained in:
parent
14d5e8363f
commit
1539af1ef5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155729
@ -3766,7 +3766,6 @@ ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq)
|
||||
txq->axq_intrcnt = 0; /* reset periodic desc intr count */
|
||||
bf = STAILQ_FIRST(&txq->axq_q);
|
||||
if (bf == NULL) {
|
||||
txq->axq_link = NULL;
|
||||
ATH_TXQ_UNLOCK(txq);
|
||||
break;
|
||||
}
|
||||
@ -3782,6 +3781,8 @@ ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq)
|
||||
break;
|
||||
}
|
||||
ATH_TXQ_REMOVE_HEAD(txq, bf_list);
|
||||
if (txq->axq_depth == 0)
|
||||
txq->axq_link = NULL;
|
||||
ATH_TXQ_UNLOCK(txq);
|
||||
|
||||
ni = bf->bf_node;
|
||||
|
Loading…
Reference in New Issue
Block a user