Skip to contentSkip to conversation

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

PATCH In review Shannon Nelson 2 participants 2 messages Jun 21, 2007 – Jun 24, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NET: [CORE] 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.

---

 net/core/dev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/core/dev.c +1 -1
index 2609062..ee051bb 100644
@@ -2009,6 +2009,7 @@ static void net_rx_action(struct softirq_action *h)
 		}
 	}
 out:
+	local_irq_enable();
 #ifdef CONFIG_NET_DMA
 	/*
 	 * There may not be any more sk_buffs coming right now, so push
@@ -2022,7 +2023,6 @@ out:
 		rcu_read_unlock();
 	}
 #endif
-	local_irq_enable();
 	return;
 
 softnet_break:
maintainer
#1 lore raw

From: Shannon Nelson <[email protected]>
Date: Thu, 21 Jun 2007 09:34:55 -0700

Quoted 6 lines

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.

Patch applied, thanks Shannon.