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> 2021-10-19 12:12:04 +0200 committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:41 +0800 commit: e4b89cf18fd68fb33841cc3f77b94d709aaa7356 parent: 16908751cf4b0eaa1e390d703cdb3baa611e9b27
Commit Summary:
net: sched: Allow statistics reads from softirq.
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/net/core/gen_stats.c b/net/core/gen_stats.c
index 5516ea0d5da0..15c270e22c5e 100644
--- a/net/core/gen_stats.c
+++ b/net/core/gen_stats.c
@@ -154,7 +154,7 @@ void gnet_stats_add_basic(struct gnet_stats_basic_sync *bstats,
 	u64 bytes = 0;
 	u64 packets = 0;
 
-	WARN_ON_ONCE((cpu || running) && !in_task());
+	WARN_ON_ONCE((cpu || running) && in_hardirq());
 
 	if (cpu) {
 		gnet_stats_add_basic_cpu(bstats, cpu);