mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
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: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
90fdc1717b
commit
2fe30dce08
1 changed files with 17 additions and 9 deletions
Loading…
Add table
Add a link
Reference in a new issue