aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-10-28 15:12:49 +0000
committerSteven Rostedt <rostedt@goodmis.org>2014-10-31 10:54:44 -0400
commitd478ac97ec286cf54e095ea851a97c7e91fbd316 (patch)
tree21eda8c694be9d5f03b2209ab173221e6e90b063
parent3eba42ef1df889ed1c7980ff41451d1ade6a3ceb (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 bf1632a15671..65de663de63f 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3298,11 +3298,9 @@ int netif_rx_ni(struct sk_buff *skb)
trace_netif_rx_ni_entry(skb);
- migrate_disable();
+ local_bh_disable();
err = netif_rx_internal(skb);
- if (local_softirq_pending())
- thread_do_softirq();
- migrate_enable();
+ local_bh_enable();
return err;
}