• F
    mt76: reduce locking in mt76_dma_tx_cleanup · 2fe30dce
    Felix Fietkau 提交于
    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: NFelix Fietkau <nbd@nbd.name>
    2fe30dce
dma.c 12.9 KB