summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-10-28 15:12:49 (GMT)
committerScott Wood <scottwood@freescale.com>2013-04-04 22:09:39 (GMT)
commitf1fc8f81db788a40d89e32fc0d8955f2df3be9b8 (patch)
tree151876caa417624967ea8f06aca2fee282ddb193 /net
parent00fee614b331f417c88208b07d7e2be673c92410 (diff)
downloadlinux-fsl-qoriq-f1fc8f81db788a40d89e32fc0d8955f2df3be9b8.tar.xz
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>
Diffstat (limited to 'net')
-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 3250939..3ef02a1 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3118,11 +3118,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;
}