aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-10-28 15:12:49 +0000
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2013-06-06 21:28:22 -0400
commit9f0c935752bc6a1ef9daca164d733467ce4905b1 (patch)
treec72427f857b9b40a6829a5553f2c6ce249d8bbf3
parent667adbc7f858f74bd0ad14af6b547aabb0ef3818 (diff)
net: Use local_bh_disable in netif_rx_ni()
This code triggers the new WARN in __raise_softirq_irqsoff() though it actually looks at the softirq pending bit and calls into the softirq code, but that fits not well with the context related softirq model of RT. It's correct on mainline though, but going through local_bh_disable/enable here is not going to hurt badly. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--net/core/dev.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index f19e627fd389..1cc8a305afa2 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2997,11 +2997,9 @@ int netif_rx_ni(struct sk_buff *skb)
{
int err;
- migrate_disable();
+ local_bh_disable();
err = netif_rx(skb);
- if (local_softirq_pending())
- thread_do_softirq();
- migrate_enable();
+ local_bh_enable();
return err;
}