Commit 515e06c4 authored by Shannon Nelson's avatar Shannon Nelson Committed by David S. Miller

[NET]: Re-enable irqs before pushing pending DMA requests

This moves the local_irq_enable() call in net_rx_action() to before
calling the CONFIG_NET_DMA's dma_async_memcpy_issue_pending() rather
than after.  This shortens the irq disabled window and allows for DMA
drivers that need to do their own irq hold.
Signed-off-by: default avatarShannon Nelson <shannon.nelson@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ddb61a57
...@@ -2009,6 +2009,7 @@ static void net_rx_action(struct softirq_action *h) ...@@ -2009,6 +2009,7 @@ static void net_rx_action(struct softirq_action *h)
} }
} }
out: out:
local_irq_enable();
#ifdef CONFIG_NET_DMA #ifdef CONFIG_NET_DMA
/* /*
* There may not be any more sk_buffs coming right now, so push * There may not be any more sk_buffs coming right now, so push
...@@ -2022,7 +2023,6 @@ out: ...@@ -2022,7 +2023,6 @@ out:
rcu_read_unlock(); rcu_read_unlock();
} }
#endif #endif
local_irq_enable();
return; return;
softnet_break: softnet_break:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment