[netfilter-cvslog] r4171 - trunk/nfsim/kernelenv

laforge at netfilter.org laforge at netfilter.org
Fri Jul 29 14:59:57 CEST 2005


Author: laforge at netfilter.org
Date: 2005-07-29 14:59:57 +0200 (Fri, 29 Jul 2005)
New Revision: 4171

Modified:
   trunk/nfsim/kernelenv/kernelenv.c
Log:
on kernels <= 2.4.29 we can see a call to schedule() even if there are no
timers


Modified: trunk/nfsim/kernelenv/kernelenv.c
===================================================================
--- trunk/nfsim/kernelenv/kernelenv.c	2005-07-29 12:48:08 UTC (rev 4170)
+++ trunk/nfsim/kernelenv/kernelenv.c	2005-07-29 12:59:57 UTC (rev 4171)
@@ -805,8 +805,15 @@
 
 void schedule(void)
 {
+	/* up to 2.4.29 we can have a call to schedule() from
+	 * ip_conntrack_cleanup() on unconfirmed connections, since
+	 * there is no unconfirmed list yet */
 	if (!do_running_timers())
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,29)
 		barf("Call to schedule with no running timers");
+#else
+		{ }
+#endif
 }
 
 static bool run_timers(const char *command)




More information about the netfilter-cvslog mailing list