amd-xgbe: Use disable_irq_nosync from within timer function
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Fri, 5 Jun 2015 21:02:26 +0000 (16:02 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Jun 2015 07:21:12 +0000 (00:21 -0700)
Since the Tx timer function runs in softirq context the driver needs
to call disable_irq_nosync instead of a disable_irq.

Reported-by: Josh Stone <jistone@redhat.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c

index db84ddcfec8464191a3edcccfd87c869ac1c5a7c..9fd6c69a8bac3c77d1c0c6e99eb4f3644561f78a 100644 (file)
@@ -423,7 +423,7 @@ static void xgbe_tx_timer(unsigned long data)
        if (napi_schedule_prep(napi)) {
                /* Disable Tx and Rx interrupts */
                if (pdata->per_channel_irq)
-                       disable_irq(channel->dma_irq);
+                       disable_irq_nosync(channel->dma_irq);
                else
                        xgbe_disable_rx_tx_ints(pdata);
 
This page took 0.02648 seconds and 5 git commands to generate.