diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-10-28 15:12:49 (GMT) |
---|---|---|
committer | Emil Medve <Emilian.Medve@Freescale.com> | 2013-04-30 08:17:30 (GMT) |
commit | 3ef432f02b82cacea0d4a14363e4f60c9684d28a (patch) | |
tree | 5273f2e967800dbbfa35142e469fcbf201ae3d94 | |
parent | 2ff985d671a2fbc200ca39500e68bb065b7f5d66 (diff) | |
download | linux-fsl-qoriq-3ef432f02b82cacea0d4a14363e4f60c9684d28a.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>
-rw-r--r-- | net/core/dev.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index aa529f7..b5e6b50 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3117,11 +3117,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; } |