]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mt76: do not hold queue lock during initial rx buffer alloc
authorQuan Zhou <quan.zhou@mediatek.com>
Fri, 8 Nov 2024 12:59:40 +0000 (20:59 +0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 14 Jan 2025 12:34:35 +0000 (13:34 +0100)
commit50f64e4253c57fb6de2a30a693ac7cd73711c3d4
treef0154654068b09d89fb7ec79aa68872d50a40c7d
parent349460913a4d029cc37c9e3817b1903233b4a627
wifi: mt76: do not hold queue lock during initial rx buffer alloc

In dma init or reset scene, full buffer is needed for all rx rings. Since
this is very time consuming, split the function to perform initial
allocation without holding the spinlock. This avoids causing excessive
scheduler latency.

Signed-off-by: Quan Zhou <quan.zhou@mediatek.com>
Reviewed-by: Shayne Chen <shayne.chen@mediatek.com>
Reviewed-by: Deren Wu <deren.wu@mediatek.com>
Link: https://patch.msgid.link/57c68a7ce1dd9022fa5e06af2c53d6313f30ec83.1731069062.git.quan.zhou@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/dma.c