VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   30 Branches   50 Tags
author: Sebastian Andrzej Siewior <bigeasy@linutronix.de> 2017-06-16 19:03:16 +0200 committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:47 +0800 commit: 84da3d03693774548e4d8ade45eca4da6678bc71 parent: 9369bb9e53d0af3f0bbae92e55d28ebd5f80a0ae
Commit Summary:
net/core: use local_bh_disable() in netif_rx_ni()
Diffstat:
1 file changed, 2 insertions, 4 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 6ba3def248a1..8bd91dbbb97d 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4950,11 +4950,9 @@ int netif_rx_ni(struct sk_buff *skb)
 
 	trace_netif_rx_ni_entry(skb);
 
-	preempt_disable();
+	local_bh_disable();
 	err = netif_rx_internal(skb);
-	if (local_softirq_pending())
-		do_softirq();
-	preempt_enable();
+	local_bh_enable();
 	trace_netif_rx_ni_exit(err);
 
 	return err;