VisionFive2 Linux kernel

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

More than 9999 Commits   35 Branches   59 Tags
author: Sebastian Andrzej Siewior <bigeasy@linutronix.de> 2016-03-30 13:36:29 +0200 committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:47 +0800 commit: c1d3c35bb8c21058df22c192725c921d68f0f28d parent: 859f1cebcba56e6c933f7855ae73062201d7947e
Commit Summary:
net: dev: always take qdisc's busylock in __dev_xmit_skb()
Diffstat:
1 file changed, 4 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 61909f8d4390..605b5f14ac9d 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3831,7 +3831,11 @@ no_lock_out:
 	 * This permits qdisc->running owner to get the lock more
 	 * often and dequeue packets faster.
 	 */
+#ifdef CONFIG_PREEMPT_RT
+	contended = true;
+#else
 	contended = qdisc_is_running(q);
+#endif
 	if (unlikely(contended))
 		spin_lock(&q->busylock);