Skip to content
Commit 2fe30dce authored by Felix Fietkau's avatar Felix Fietkau
Browse files

mt76: reduce locking in mt76_dma_tx_cleanup



q->tail can be safely updated without locking, because there is no
concurrent access. If called from outside of the tasklet (for flushing),
the tasklet is always disabled.
q->queued can be safely read without locking, as long as the decrement
happens within the locked section.
This patch allows cleaning up tx packets outside of the section that holds
the queue lock for improved performance

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 90fdc171
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment