]> git.baikalelectronics.ru Git - kernel.git/commit
dwc_eth_qos: release descriptors outside netif_tx_lock
authorLars Persson <lars.persson@axis.com>
Mon, 29 Feb 2016 15:22:31 +0000 (16:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 19:57:14 +0000 (14:57 -0500)
commit9a5314a27adc3588aada4568b690ce5d9b0f95f3
tree30f67f7dab8e59c32d42a949521972cb5a5dae6e
parent83acc96bd0e474106f87faedf584f52a5816811e
dwc_eth_qos: release descriptors outside netif_tx_lock

To prepare for using the CMA, we can not be in atomic context when
de-allocating DMA buffers.

The tx lock was needed only to protect the hw reset against the xmit
handler. Now we briefly grab the tx lock while stopping the queue to
make sure no thread is inside or will enter the xmit handler.

Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/synopsys/dwc_eth_qos.c