mirror of https://gitee.com/openkylin/linux.git
mt76: avoid enabling interrupt if NAPI poll is still pending
if napi_complete() returns false, it means that polling is still pending. Interrupts should not fire until the polling is no longer scheduled Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
e7aaa72f47
commit
3e0705acd4
|
@ -539,10 +539,8 @@ mt76_dma_rx_poll(struct napi_struct *napi, int budget)
|
|||
|
||||
rcu_read_unlock();
|
||||
|
||||
if (done < budget) {
|
||||
napi_complete(napi);
|
||||
if (done < budget && napi_complete(napi))
|
||||
dev->drv->rx_poll_complete(dev, qid);
|
||||
}
|
||||
|
||||
return done;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue