Skip to content

Commit

Permalink
Revert "mt76: use rcu_read_lock_bh in mt76_dma_rx_poll"
Browse files Browse the repository at this point in the history
This reverts commit 44825e8.
Will be replaced by a better fix

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Dec 5, 2019
1 parent 88db676 commit fff2c07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,15 +538,15 @@ mt76_dma_rx_poll(struct napi_struct *napi, int budget)
dev = container_of(napi->dev, struct mt76_dev, napi_dev);
qid = napi - dev->napi;

rcu_read_lock_bh();
rcu_read_lock();

do {
cur = mt76_dma_rx_process(dev, &dev->q_rx[qid], budget - done);
mt76_rx_poll_complete(dev, qid, napi);
done += cur;
} while (cur && done < budget);

rcu_read_unlock_bh();
rcu_read_unlock();

if (done < budget && napi_complete(napi))
dev->drv->rx_poll_complete(dev, qid);
Expand Down

0 comments on commit fff2c07

Please sign in to comment.